12.07.2015 Views

Matlab/Octave Tutorial

Matlab/Octave Tutorial

Matlab/Octave Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MATLAB 程 式 設 計 入 門 篇 : 初 探 MATLAB說 明 文 字 範 例 -2 (I)• text 指 令• 使 用 語 法 :text(x, y, string)• x、y : 文 字 的 起 始 座 標 位 置• string : 代 表 此 文 字• 範 例 3-16:plotxy16.mx = 0:0.1:2*pi;plot(x, sin(x), x, cos(x));text(pi/4, sin(pi/4),'\leftarrow sin(\pi/4) = 0.707');text(5*pi/4, cos(5*pi/4),'cos(5\pi/4) = -0.707\rightarrow','HorizontalAlignment', 'right');68

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

Saved successfully!

Ooh no, something went wrong!