shili04.m

来自「自己手敲并验证的matlab 6.0实例的代码 及运行程序所得的图像结果。此部分」· M 代码 · 共 18 行

M
18
字号
function shili04
h0=figure('toolbar','none',...
    'position',[400 400 400 400],...
    'name','实例04');
x=0:900;
a=2;
b=0.005;
y1=a*x;
y2=cos(b*x);
[haxes,hline1,hline2]=plotyy(x,y1,x,y2,'semilogy','plot');
%调用PLOTYY()函数;
axes(haxes(1))
ylabel('semilog plot');
%标注第一Y轴
axes(haxes(2))
ylabel('linesr plot');
%标注第二Y轴

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?