You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
MATLAB 程 式 設 計 入 門 篇 : 初 探 MATLABPlot 基 本 繪 圖 -110.80.60.40.20-0.2-0.4-0.6-0.8-10 1 2 3 4 5 6 7• linspace(0, 2*pi) 產 生 從0 到 2π 且 長 度 為 100( 預 設 值 ) 的 向 量 x• y 是 對 應 的 y 座 標• 只 給 定 一 個 向 量• 該 向 量 則 對 其 索 引 值(Index) 作 圖• plot(y) 和 plot(1:length(y), y)會 得 到 相 同 的 結 果26