⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shili05.asv

📁 自己手敲并验证的matlab 6.0实例的代码 及运行程序所得的图像结果。此部分为前20个例子。为matlab的基础部分
💻 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 + -