12.07.2015 Views

Matlab/Octave Tutorial

Matlab/Octave Tutorial

Matlab/Octave Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MATLAB 程 式 設 計 入 門 篇 : 初 探 MATLAB3-1 基 本 的 繪 圖 指 令• Plot : 最 基 本 的 繪 圖 指 令• 對 x 座 標 及 相 對 應 的 y 座 標 進 行 作 圖• 範 例 3-1:plotxy01.mx = linspace(0, 2*pi);y = sin(x);plot(x, y);% 在 0 到 2π 間 , 等 分 取 100 個 點% 計 算 x 的 正 弦 函 數 值% 進 行 二 維 平 面 描 點 作 圖25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!