.


:




:

































 

 

 

 


Subplot(2,2,1),plot(x,sin(x))




subplot(2,2,2),plot(sin(5*x),cos(2*x+0.2))

subplot(2,2,3), plot(x,sin(x)^2)

subplot(2,2,4), plot(x,sin(x)^3)

. 3.1.

 

. 3.1. subplot

 

1.

.

   

1. figure(1).

2. X, 2 5 0.01 ( ).

3. Y, ( ).

4. plot , .

.
figure(1)X=2:0.01:5Y=atan(X)./(1+sin(X).^2)plot(X,Y)

3.2.

3.2

1.     2.    
3. -3   4. -1  
5.     6.    
7. -2   8.    
9.     10.    
11.     12.    
13.     14. -1  
15.     16. -1  
17. -1,5 1,5 18.    
19. -2   20.    

2.

. , , , , , .

1 2
       

1. figure(1).

2. X, 2 5 0.1 ( ).

3. Y, ( ).

4. X1, 2 4 0.1 ( ).

5. Y1, .

6. plot , , (, '--rx' ). 7. , , .
figure(1)X=2:0.1:5Y=3*cos(X)./(1+sin(X).^2)X1=2:0.1:4Y1=(1+sqrt(2.5*X1))./(0.2+cos(X1).^2)plot(X,Y,'--rx',X1,Y1,'-.k+')xgrid ()xtitle(" "," "," ")legend("Y(X)"," Y1(X1)")

3.3.

 

3.3

1 2
1.        
2. -3   -1  
3.        
4. -2      
5.        
6.        
7.     -1  
8.     -1  
9. -1,5 1,5    
10. -2      
11.        
12. -2      
13. -2   -1  
14.     -1  
15.     -3  

3. -

. - , , .

1. figure(1).

2. X, -4 4 0.1 ( ).

3. , , i. , , if.

4. plot , .

 

figure(1)X=-4:0.1:4, i=1while i<=length(X) if X(i)>2 then y=sqrt(X(i)), elseif (X(i)>=-1) & (X(i)<=2) then y=X(i)^2 else y=4*sin(X(i)) end Y(i)=y i=i+1endplot(X,Y,'-bx'), xgrid ()

2.7.





:


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


:

:

- , .
==> ...

1552 - | 1354 -


© 2015-2024 lektsii.org - -

: 0.013 .