极坐标
polarplot(theta, rho, LineSpace) |
- theta:相角
- rho: 极径
- Linespace:与plot类似。记不得就翻之前的文章
>>>th = 0:.01*pi:4*pi;
r = abs(sin(th).*cos(th));
polarplot(th, r, 'rh', 'linewidth', 2, 'markerindices', 1:1:length(r))

半对数坐标
semilogx(x, y, LineSpace) |
semilogy(x, y, LineSpace) |
>>> t = logspace(1,4, 100);
semilogx(t, sin(t).*exp(-t), 'r-')

>> t = 1:20;
semilogy(t, t.^3+4*t.^2)

双对数坐标
>> t = logspace(1, 3, 200);
>loglog(t, abs(sin(t).*log(t)))

双Y轴坐标
yyaxis left %指定用左边的Y轴作图 yyaxis right % 指定用右边的Y轴作图 yyaixs(ax,...) %指定坐标区的活动侧为左或者右。 |
>> t = -5:.1:5;
yyaxis left
plot(t, sin(t))
yyaxis right
plot(t, 4*cos(t))

>> t = -5:.1:5;
ac = subplot(2,2,2);
yyaxis(ac,'right')
plot(ac, t, 2*sin(t))

>> yyaxis(ac, 'left')
plot(ac, t, 3*cos(2*t))
