Transcription of MATLAB 二維繪圖 - cc.ntut.edu.tw
{{id}} {{{paragraph}}}
MATLAB nplot : n x y x = linspace(0, 2*pi);% 0 2 100 y = sin(x);% x plot(x, y);% (Index) n x y plot n x = linspace(0, 2*pi);% 0 2 100 plot(x, sin(x), x, cos(x), x, sin(x)+cos(x)); % plot(x, sin(x)); hold on; plot(x, cos(x)); hold off; y plotyyx y semilogyx y semilogxx y (Logarithmic Scale)loglogx y (Linear Scale) plot nsemilogx n x x = linspace(0, 8*pi);% 0 8 100 semilogx(x, sin(x)); % x nplotyy n y x = linspace(0, 2*pi);% 0 2 100 y1 = sin(x); y2 = exp(-x); ploty
基本二維繪圖指令 plotyy 畫出兩個刻度不同的y軸 semilogy x 軸為線性刻度,y 軸為對數刻度 semilogx x 軸為對數刻度,y 軸為線性刻度
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}