当前位置:网站首页>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
边栏推荐
- MATLAB 画五星红旗
- Whether the same binary search tree (25 points)
- 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
- L2-022 重排链表 (25 分)(map+结构体模拟)
- Resource packaging dependency tree
- How much inventory recording does the intelligent system of external call system of okcc call center need?
- Share the office and improve the settled experience
- Idea import commons-logging-1.2 Jar package
- 关于cin,scanf和getline,getchar,cin.getline的混合使用
- 数字政府建设中政务中台中的技术创新点
猜你喜欢
随机推荐
tsdf +mvs
LeetCode_ DFS_ Medium_ 1254. Count the number of closed islands
MySQL小练习(仅适合初学者,非初学者勿进)
Failed to prepare device for development
Swagger document export custom V2 / API docs interception
Basic usage of synchronized locks
The crawler returns null when parsing with XPath. The reason why the crawler cannot get the corresponding element and the solution
Stm32f103zet6 [development of standard library functions] - Introduction to library functions
关于cin,scanf和getline,getchar,cin.getline的混合使用
是否完全二叉搜索树 (30 分)
After a circle, I sorted out this set of interview questions..
怎样读取Excel表格到数据库
L2-022 rearrange linked list (25 points) (map + structure simulation)
2022-04-22 openebs cloud native storage
PLC point table (register address and point table definition) cracking detection scheme -- convenient for industrial Internet data acquisition
How much inventory recording does the intelligent system of external call system of okcc call center need?
Idea is configured to connect to the remote database mysql, or Navicat fails to connect to the remote database (solved)
【精品】利用动态代理实现事务统一管理 二
Idea package jar file
Star Trek强势来袭 开启元宇宙虚拟与现实的梦幻联动









