📄 shili05.asv
字号:
function shili05
h0=figure('toolbar','none',...
'position',[198 56 350 300],...
'name','实例05');
t=0:pi/10:2*pi;
[x,y]=meshgrid(t);
%创建栅格数据矩阵;
subplot(221)
%调用函数subplot()将图形窗口分解为2*2个子窗口,
%并且选中其中的一个子窗口;
plot(sin(t),cos(t))
axis equal
%定义X轴与Y轴具有相同的数据单位;
subplot(222)
z=sin(x)-cos(y);
plot(t,z)
axis([0 2*pi -2 2])
%定义X轴由0->2*pi,Y轴由-2-》2;
subplot(223)
h=sin(x)+cos(y);
plot(t,h)
axis([0 2*pi -2 2])
subplot(224)
g=(sin(x).^2)-cos(y).^2;
plot(t,g)
axis([0 2*pi -1 1])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -