You are on page 1of 10

Universitatea Tehnic a Moldovei

2 (1 )
Matlabe.

. AI-112

2011

.
.

:
I.
;
II.
:
1)
2)
;
x [0,2;10];
:
a) ;
b) ( );
c) ( );
III.


:
z(x,y)=
;
x [-1:1] ;

y [-1:1];

I.



MATLAB .
:
plot
;
loglog ;
semilogx
(log x); semilogy
(log y);
polar ;
mesh
;
contour
;
stairstep .
:
text
;
title ;
xlabel x;
ylabel y;
grid
.

:
axis(<>) ;
plot(X.Y.S) plot(X.Y),
S.
S .

Y

R
G


.
0
X
+
*
S
D
V

()

()

()

()


--

-.
--

<
>

, S
, (,
, , . .)
.

II.


:
1)
2)
; x [0,2;10];
:
a) ;
1) >> x=[-0.2:0.01:10];
>> y=log(abs(x)).^2;
>> figure
>> plot(x,y,'m*-')
>>grid on
>>

2)
>> x=[-0.2:0.01:10];
>> g=x.*log(abs(x));
>> figure
>> plot(x,g,'go-')
>> grid on
>>

b) ( );
>> x=[-0.2:0.01:10];
>>g=x.*log(abs(x));
>>y=log(abs(x)).^2;
>>figure
>>plot(x,y,'mo-',x,g,'go-');
>>grid on
>>

c) ( );
>> x=[-0.2:0.01:10];
>> figure
>> y=log(abs(x)).^2;
>> plot(x,y,'mo-');
>> grid on
>> g=x.*log(abs(x));
>> plot(x,g,'go-')
>> grid on
>>


:
z(x,y)=
; x [-1:1] ; y [-1:1];

>> figure
>> [x,y]=meshGrid(-1:0.01:1);
>> [x,y]=meshGrid(-1:0.02:1);
>> z=(sin(x).^2+cos(y).^2).^(x.*y);
>> surF(x,y,z);

>> colorbar
>> grid on
>>



Matlabe,
, :
a) ;
b) ( );
c) ( );

. Matlab
.

You might also like