clc
x=linspace(1,10,100);
y=exp(x.^2/2);
subplot(211);plot(x,y);
title('普通坐标');xlabel('x');ylabel('y');grid on;
subplot(212);plot(x,log(y));
ytickn=floor(log(min(y))):ceil(log(max(y)));
ytick=exp(ytickn);
for i=1:length(ytickn),
yticklabel{i}=['e^' num2str(ytickn(i))];
end
set(gca,'ytick',ytick,'yticklabel',yticklabel);
title('自然对数坐标');xlabel('x');ylabel('y');grid on;
本视频展示如何用matlab绘制散圆状态图,可用于相关科研数据绘图!