当前位置:网站首页>[matlab] - draw a five-star red flag
[matlab] - draw a five-star red flag
2022-07-06 03:37:00 【Embedded workplace】
% Five star red flag
function varargout=saxplaxliu(varargin)
x=[0 0 40 40 0];
y=[0 13 13 0 0];
k=40/13;
fill(x,y,'r')
hold on
plot(x,y,'r')
axis([0 40 0 13])
seta=pi/6;
R=1.5;R2=0.55;x0=7;y0=9;seta=0;
fliu(R,R2,x0,y0,seta,k)
R=0.6;R2=0.23;x0=15;y0=11.6;seta=-pi/20;
fliu(R,R2,x0,y0,seta,k)
R=0.6;R2=0.23;x0=20;y0=10;seta=pi/20;
fliu(R,R2,x0,y0,seta,k)
R=0.6;R2=0.23;x0=19;y0=7;seta=pi/25;
fliu(R,R2,x0,y0,seta,k)
R=0.6;R2=0.23;x0=16;y0=5;seta=-pi/10;
fliu(R,R2,x0,y0,seta,k)
axis off
function fliu(R,R2,x0,y0,seta,k)
x=zeros(1,10);
y=x;
for i=1:5
x(2*(i-1)+1)=R*cos(pi/2+2*pi/5*(i-1)+seta);
x(2*i)&
边栏推荐
- IPv6 comprehensive experiment
- Shell 传递参数
- Leetcode problem solving -- 98 Validate binary search tree
- Redo file corruption repair
- 3.1 rtthread 串口设备(V1)详解
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- Deep parsing pointer and array written test questions
- Computer graduation project asp Net fitness management system VS development SQLSERVER database web structure c programming computer web page source code project
- 【Qt5】Qt QWidget立刻出现并消失
- 3.2 detailed explanation of rtthread serial port device (V2)
猜你喜欢
下一个行业风口:NFT 数字藏品,是机遇还是泡沫?
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
EDCircles: A real-time circle detector with a false detection control 翻译
BUAA magpie nesting
JS music online playback plug-in vsplayaudio js
遥感图像超分辨率论文推荐
Python implementation of maddpg - (1) openai maddpg environment configuration
How do we make money in agriculture, rural areas and farmers? 100% for reference
2.13 weekly report
2.2 STM32 GPIO operation
随机推荐
11. Container with the most water
Blue style mall website footer code
关于非虚函数的假派生
Force buckle 1189 Maximum number of "balloons"
深入刨析的指针(题解)
施努卡:视觉定位系统 视觉定位系统的工作原理
【Qt5】Qt QWidget立刻出现并消失
2.13 weekly report
These are not very good
SAP ALV color code corresponding color (finishing)
Computer graduation project asp Net fitness management system VS development SQLSERVER database web structure c programming computer web page source code project
2. GPIO related operations
. Net 6 and Net core learning notes: Important issues of net core
Deep parsing pointer and array written test questions
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Pytorch load data
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
[Qt5] QT QWidget immediately appears and disappears
蓝色样式商城网站页脚代码
遥感图像超分辨重建综述