当前位置:网站首页>Matlab draw five-star red flag
Matlab draw five-star red flag
2022-04-23 08:54:00 【jeff one】
MATLAB Draw a five-star red flag
The source code is as follows :
clc;clear;close all
x=[1 4 5 6 9 7 8 5 2 3];
y=[6 6 9 6 6 4 0 2 0 4];
a=.5;
b=[12 15 12 5];
c=[7 0 -7 -10];
hold on
axis equal
fill([0 0 50 50],[12 -25 -25 12],'r')
fill(x,y,'y')
for i=1:4
fill(a*x+b(i),a*y+c(i),'y')
end
axis off
f=getframe(gcf);
figure
f=f.cdata;
[x,y]=meshgrid(1:size(f,2),1:size(f,1));
surf(x,y,25*sin((x*2+y)*.015),f,'edgec','n');
% camlight headlight;
axis equal off;
set(gcf,'color','w');
view([20 40]);
版权声明
本文为[jeff one]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230815235268.html
边栏推荐
猜你喜欢
2022-04-22 OpenEBS云原生存储
DJ音乐管理软件Pioneer DJ rekordbox
MySQL小练习(仅适合初学者,非初学者勿进)
PCTP考试经验分享
Virtual online exhibition - Online VR exhibition hall realizes 24h immersive exhibition viewing
LLVM之父Chris Lattner:编译器的黄金时代
LeetCode_DFS_中等_1254. 统计封闭岛屿的数目
php基于哈希算法出现的强弱比较漏洞
LeetCode_ DFS_ Medium_ 1254. Count the number of closed islands
Pctp test experience sharing
随机推荐
【原创】使用System.Text.Json对Json字符串进行格式化
cadence的工艺角仿真、蒙特卡洛仿真、PSRR
Arbre de dépendance de l'emballage des ressources
LaTeX论文排版操作
根据后序和中序遍历输出先序遍历 (25 分)
BK3633 规格书
Notes on xctf questions
Idea package jar file
Notes on 30 steps of introduction to the Internet of things of yangtao electronics STM32 III. cubemx graphical programming and setting the IO port on the development board
Flink reads MySQL and PgSQL at the same time, and the program will get stuck without logs
uni-app和微信小程序中的getCurrentPages()
Automatic differentiation and higher order derivative in deep learning framework
On time atom joins hands with oneos live broadcast, and the oneos system tutorial is fully launched
Research purpose, construction goal, construction significance, technological innovation, technological effect
valgrind和kcachegrind使用运行分析
MySQL查询两张表属性值非重复的数据
关于cin,scanf和getline,getchar,cin.getline的混合使用
Notes on 30 steps of introduction to Internet of things of yangtao electronics STM32 III. Explanation of new cubeide project and setting
Multi view depth estimation by fusing single view depth probability with multi view geometry
Failed to prepare device for development