【MATLAB基础】—画出MATLAB图标

1、代码

clear
clc
t=(1:2:15)'*pi/8;
x=sin(t);
y=cos(t);
fill(x,y,'r')
axis square off
text(0,0,'MATLAB','Color',[1 1 1],'FontSize',50,'FontWeight','bold','HorizontalAlignment','center')

2、显示

 

发布了64 篇原创文章 · 获赞 70 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/fanjufei123456/article/details/104478547
今日推荐