.


:




:

































 

 

 

 


3. Scilab




Scilab (figure). , . N figure(N). , , .

plot, , .

plot(X,Y) , X Y. Y , , .

, y=sin(t) .

t = 0:0.01:7; y = sin(t); plot(t,y) t = 0:0.01:7;plot(t,sin(t))

plot(Y) , Y, .

t = 0:0.01:7; y = sin(t); plot(y)  

sin(x) cos(x), y1 y2, x, :

x=0:0.01:6 y1=sin(x) y2=cos(x) plot(x,y1,x,y2) x=0:0.01:6 plot(x,sin(x),x,cos(x))   x=0:0.01:6 plot(x,sin(x))plot(x,cos(x))

plot(X,Y,S) plot(X,Y), S. , S, 3.1.

 

3.1

- . y
: o m
-. - x c
-- + r
    * g
    s b
    d w
    v k

, y= 0.02 x 3 :

x=-5:0.5:2;

plot(x,0.02*x.^3,'--dr')

plot(X1,Y1,S1,X2,Y2,S2,) , X1,Y1 1- , X2, Y2 2- .. S1, S2 .. .

:

x=-6:0.1:6 y1=sin(x) y2=sin(x).^2 plot(x,y1,'-b',x,y2,'-+r')  

xgrid () .

Xtitle(title,xstr,ystr)

title , ;

xstr , X;

ystr , Y.

( ) legend, ,

legend(" Y(X)"," Y1(X1))

, , . , , .

 

figure(1) X=2:0.1:5 Y=atan(X)./(1+sin(X).^2) X1=2:0.1:4 Y1=(1+sqrt(0.5*X1))./(0.5+sin(X1).^2) plot(X,Y,'--rx',X1,Y1,'-.go') xgrid () xtitle(" ", " "," ") legend(" Y(X)", " Y1(X1)")

subplot(m, n, p),

m´n , m , n - , p , ( ).

subplot:

=-5:0.01:5;





:


: 2017-02-28; !; : 985 |


:

:

, ; , .
==> ...

1703 - | 1484 -


© 2015-2024 lektsii.org - -

: 0.011 .