使用这个代码
x=logspace(-1,1,100);
y=x.^2;
figure
subplot(2,2,1);
plot(x,y);
title('plot');
subplot(2,2,2);
simplotx(x,y);
title('simplotx');
subplot(2,2,3);
simploty(x,y);
title('simploty');
subplot(2,2,4);
loglog(x,y);
title('loglog');
//不是自己写的
使用帮助里的程序代码也是同样的结果