📄 tch42.m
字号:
clear
t=0:.1:2*pi; y1=sin(t); y2=cos(t); y3=y1.*y2;
subplot(211),plot(t,y1)
subplot(223),stem(t,y1)
subplot(224),polar(t,y1)
plot(t,y1,'--or',t,y2,'-.hexagramg',t,y3,'-xb')
xlabel('Time')
ylabel('Magnitude')
axis([-1 8 -1.2 1.2]);
gtext({'别理我!','烦着呢!'},'FontName','楷体_GB2312','Fontsize',16,'color','r')
subplot(4,4,11),fill(t,y1,'r')
subplot(211),plot(t,y1)
subplot(312),plot(t,y1)
subplot(1,1,1),feather(t,y1)
stairs(t,y1)
h=figure(1);
h1=axes('pos',[0.2 0.2 0.6 0.4]); plot(t,y1)
h2=axes('pos',[0.1 0.1 0.8 0.1]); stem(t,y1)
h3=axes('pos',[0.5 0.5 0.4 0.4]); fill(t,y1,'g')
h4=axes('pos',[0.1 0.6 0.3 0.3]); plot(t,y1,'--',t,y2,':',t,y3,'o')
set(h)
get(h,'position')
get(h,'children')
set(h1)
set(h4,'pos',[0 0 0.6 0.6])
set(h ,'pos',[0 0 560 400])
set(h3,'box','off')
set(h3,'xgrid','on')
set(h3,'gridlinestyle','-')
set(h3,'xdir','reverse')
set(h3,'xdir','normal')
ht3=get(h3,'title')
set(ht3,'string','澳洲人的回旋镖')
set(ht3,'rotation',-10)
set(ht3,'fontsize',15)
set(ht3,'color',[244 29 249]/255)
clf; t=0:0.4:2*pi; y=sin(t);
hc=plot(t,y,'-pentagram');
axis([0 2*pi -2.2 2.2])
ht=gtext('研究生院');
yy=get(hc,'YData');
set(hc,'Markersize',20,'linestyle','-.','color',[69 34 120]/255,'YData',yy*2)
set(ht,'string','北京交通大学','fontsize',30,'rotation',10)
set(ht,'color','r','fontweight','bold','fontname','隶书')
set(ht,'string','\int^{\pi}_{0}{\xi^2+5\zeta-10}\approx\infty')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -