y = f (x) Matlab . . , ().
plot(x,y,s), x, y ; x y = f (x); y y = f (x); s , ( 'k-o') , . .
y -(), m -(),
c -(), r -(),
g - (), b -(),
w (), k -().
o. -(), - (),
o x -(), + -(),
o * - (), s -(),
o d (), < > ^ -( ),
o p -(), h -().
:
o - - (),: - ( ),
o -. - (), -- - ( ).
s . .
plot(x1,y1,s1,x2,y2,s2,x3,y3,s3,)
% sin x, cos x
x=0:0.1:2*pi;
y1=sin(x);
y2=cos(x);
plot(x,y1,'k-o',x,y2,'r--*')
, 1.1. - , cos(x) , sin(x)
1.1 - , plot
Clipboard, Edit Copy Figure, - , Paint.
subplot .
subplot(m,n,p), m - , n - , - ( 1) - m n p - . , y, y2, y3 ,
subplot(3,1,1), plot(t,y), grid on;
subplot(3,1,2), plot(t,y2), grid on;
subplot(3,1,3), plot(t,y3), grid on;
grid on , .
- bar(x.y). subplot(m,n,p), bar(x.y).
|
|
plot (...,' LineWidth ', ) -
polar(f,r) polar(f,r, LineSpec), f - r - : x=r*cos(f), y=r*sin(f):
f=0:0.01:2*pi;
r=sin(2.*f).*cos(2.*f);
hp=polar(f,r),hold on
set(hp,'LineWidth',4)
1