0
phi2=[.890, .698, .859, .824, .637, .714, .827, .803];
phi3=[.680, .650, .790, .790, .620, .680, .740, .680];
phi4=[.859, .735, .825, .830, .628, .731, .842, .747];
phi=[phi2 phi3 phi4];
phi=phi';
plot(phi2,'+--')
hold on
plot(phi3,'x--')
plot(phi4,'s--')
axis([1 8 0 1])
set(0, 'defaultTextInterpreter', 'latex');
legend({'$C=2$','$C=3$','$C=4$'},'interpreter', 'latex', 'Location','SouthEast')
xlabel('$\phi(t)$');
hold off
saveas(gcf, 'phi(t)', 'pdf') %Save figure
有沒有一種方法來繪製圖使用情節(phi)? 我不知道的是如何在一個繪圖命令中指定線條樣式(+ - ,x - ,s--)。matlab陰謀矩陣線樣式
軸線看起來太靠近邊緣。我可以調整它像
axis([0.9 8.1 0 1])
但是,Matlab可以自動調整它嗎?
謝謝!
我通常用軸做的事情就像這樣:axis([min(phi(:))max(phi(:))] * 1.1) –