当前位置:网站首页>[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)&
边栏推荐
- Codeforces Global Round 19
- Princeton University, Peking University & UIUC | offline reinforcement learning with realizability and single strategy concentration
- Pelosi: Congress will soon have legislation against members' stock speculation
- mysql从一个连续时间段的表中读取缺少数据
- 11. Container with the most water
- [slam] orb-slam3 parsing - track () (3)
- Esbuild & SWC: a new generation of construction tools
- How do we make money in agriculture, rural areas and farmers? 100% for reference
- BUAA calculator (expression calculation - expression tree implementation)
- Overview of OCR character recognition methods
猜你喜欢
暑期刷题-Day3
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
SAP ALV color code corresponding color (finishing)
JS music online playback plug-in vsplayaudio js
Precautions for single chip microcomputer anti reverse connection circuit
Map sorts according to the key value (ascending plus descending)
RT thread -- FTP of LwIP (2)
SAP ALV颜色代码对应颜色(整理)
Tomb. Weekly update of Finance (February 7 - February 13)
js凡客banner轮播图js特效
随机推荐
【Qt5】Qt QWidget立刻出现并消失
Leetcode problem solving -- 108 Convert an ordered array into a binary search tree
11. Container with the most water
Mysql database operation
Pytorch基础——(1)张量(tensor)的初始化
Computer graduation project asp Net fitness management system VS development SQLSERVER database web structure c programming computer web page source code project
施努卡:3d视觉检测应用行业 机器视觉3d检测
Image super-resolution using deep convolutional networks(SRCNN)解读与实现
Some problem records of AGP gradle
JS音乐在线播放插件vsPlayAudio.js
RT-Thread--Lwip之FTP(2)
UDP reliable transport protocol (quic)
An article about liquid template engine
RT thread -- FTP of LwIP (2)
The next industry outlet: NFT digital collection, is it an opportunity or a foam?
2.13 weekly report
3.1 detailed explanation of rtthread serial port device (V1)
Crazy, thousands of netizens are exploding the company's salary
IPv6 comprehensive experiment
1.16 - 校验码