当前位置:网站首页>[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)&
边栏推荐
- 2.2 STM32 GPIO操作
- C language circular statement
- EDCircles: A real-time circle detector with a false detection control 翻译
- ASU & OSU | model based regularized off-line meta reinforcement learning
- Crawler of explanation and application of agency theory
- Research on cooperative control of industrial robots
- ArabellaCPC 2019(补题)
- Teach you to build your own simple BP neural network with pytoch (take iris data set as an example)
- 多项目编程极简用例
- mysql从一个连续时间段的表中读取缺少数据
猜你喜欢
Performance analysis of user login TPS low and CPU full
UDP reliable transport protocol (quic)
Cubemx 移植正点原子LCD显示例程
Tomb. Weekly update of Finance (February 7 - February 13)
2、GPIO相关操作
How to choose PLC and MCU?
Python implementation of maddpg - (1) openai maddpg environment configuration
Safety science to | travel, you must read a guide
C language judgment, ternary operation and switch statement usage
RT-Thread--Lwip之FTP(2)
随机推荐
The solution of permission denied (750 permissions should be used with caution)
出现Permission denied的解决办法(750权限谨慎使用)
Flask learning and project practice 9: WTF form verification
【Rust 笔记】18-宏
Recommended foreign websites for programmers to learn
Image super-resolution using deep convolutional networks(SRCNN)解读与实现
LTE CSFB test analysis
SWC introduction
2.1 rtthread pin设备详解
These are not very good
MPLS experiment
数据分析——seaborn可视化(笔记自用)
Pytorch load data
JS music online playback plug-in vsplayaudio js
Pelosi: Congress will soon have legislation against members' stock speculation
Tidb ecological tools (backup, migration, import / export) collation
Pytorch基础——(2)张量(tensor)的数学运算
下一个行业风口:NFT 数字藏品,是机遇还是泡沫?
【Qt5】Qt QWidget立刻出现并消失
BUAA magpie nesting