rlim似乎可以解决问题:
theta=linspace(0,2*pi,200);
%% The pattern has negative values
pattern = 10*log10(abs(1+exp(1j*17*sin(theta))));
%% Makes the max of the pattern 0
pattern=pattern-max(pattern);
%% Plots the figure
figure
pax = polaraxes;
polarplot(theta,pattern)
%% This is what you want. Add a little bit of extra space after the minimum and maximum value
rlim([min(pattern)-3 max(pattern)+1])
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句