3-4 說???????

MATLAB ibϧΩι϶b[JrAHWiϧΪiŪʡAOiCpUG

O
title ϧΪD
xlabel x b
ylabel y b
zlabel z b]AΩøϡ^
legend hu
text bϧΤ[Jr
gtext ϥηƹMwrm

϶brAi|ҦpUG

Example 1: 03-Gø/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}');

䤤 legend O|eX@pA]tCuCpG legend mNAiηƹIܾAmC~AMATLAB Nϱ׽uu\vSŸA]iͤWСBUСBþrBƾDzŸĪGA`WhpP@ LaTex TeXƾǼҦAԱi help text ӬduWC

YnbϧΤW[JrAi text gtext OCtext Oϥλyk text(x, y, string)A䤤 xBy Or_lyЦmAstring hNrA|ҦpUG

Example 2: 03-Gø/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');

bWҤAuHorizontalAlignmentvΡurightv text ONrVkaC

gtext ϥλyk gtext(string)AݱzϥηƹbϤWI@mAstring YܦbWCݪ`NOAgtext uΦbGøϡC


MATLAB{]pGJg