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說 明 文 字 範 例 -1 (I)• 範 例 3-15:plotxy15.msubplot(1,1,1);x = 0:0.1:2*pi;y1 = sin(x);y2 = exp(-x);plot(x, y1, '--*', x, y2, ':o');xlabel('t = 0 to 2\pi');ylabel('values of sin(t) and e^{-x}')title('Function Plots of sin(t) and e^{-x}');legend('sin(t)','e^{-x}');66

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

Saved successfully!

Ooh no, something went wrong!