.


:




:

































 

 

 

 


1

Matlab , , , , ^ ( ), , , . . Enter. ans :

>> 1.5+2.9

ans =

.4000

, . ans . . :

, , ;

;

(!!!).

=, :

>> a=3.25*(0.7-3.3/5.1)+2.3^3

a =

12.3391

, . . e : 0.00125 1.25e-3 . i:

>>b=5*(2.2+3.9i)+0.8

b =

1.8000 +19.5000i

Matlab . . 1. . , help elfun. help . help, - , help .

 

1.

( )
sin, cos, tan, cot , ,
sec, csc ,
( )
asin, acos, atan, acot , ,
asec, acsc ,
sinh, cosh, tanh, coth , ,
sech, csch
asinh, acosh, atanh, acoth , , ;
, ,
Exp
Log, log2, log10 , 2 10
sqrt
,
Abs, sign
conj, imag, real -,

 

, , x = 0.2 y = -3.9:

, . Matlab , "Enter" Matlab :

>> x=0.2;

>> y=-3.9;

>> c=sqrt((sin(4/3*pi*x)+exp(0.1*y))/(cos(4/3*pi*x)+exp(0.1*y)))+...

((sin(4/3*pi*x)+exp(0.1*y))/(cos(4/3*pi*x)+exp(0.1*y)))^(1/3)

, :

>> x=0.2;

>> y=-3.9;

>> a=sin(4/3*pi*x)+exp(0.1*y);

>> b=cos(4/3*pi*x)+exp(0.1*y);

>> c=sqrt(a/b)+(a/b)^(1/3)

c =

2.0451

. , , . b, a. ↑. , , , sin cos, "Enter". "↑" "↓" , .. , "←","→", "Home", "End" - . ( , ) "PageUp", "PageDown" .

6.0 Matlab Command History . , "Enter", disp:

>> disp(c)

2.0451

. Matlab , . , , -1. , , Inf -Inf. NaN (Not a Number - ). Matlab .

whos. , a b :

>> a=-1.34;

>> b=2.98+3.86i;

whos,

>> whos a b

, . Class , Bytes - , , Size . .

Name Size Bytes Class

a 1x1 8 double array

b 1x1 16 double array (complex)

Grand total is 2 elements using 24 bytes

, Matlab . Matlab .

, . . Preferences: File . Matlab 5.3 Numeric Format General , 6.x Text display Numeric Format Numeric display ( Command Window ). :

short (default) - ( );

long - ;

short e - ;

long e - ;

short g - short, short e ( long g);

hex - ;

+ - "+" "-", - ;

bank - ;

rat - .

, Matlab . , , short. 1/3333 short e, , .

format . ,

>> format short e

Preferences. , , short long . .

, whos.

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 

  1. Matlab.
  2. , .
  3. .
  4. Matlab .
  5. ?
  6. , .
  7. , , .
  8. , , .
  9. .
  10. .
  11. , .
  12. , .
  13. .
  14. "NaN" ?
  15. , .
  16. .
  17. .
  18. , ?
  19. ? .
  20. .
  21. .
  22. .
  23. .
  24. () .
  25. : "."( ),".."( ), "..."() ";".
  26. : ",", "%", "!", "=".
  27. : ans, computer, eps, i (j), inf, NaN.
  28. : nargin, nargout, pi, realmin, realmax.
  29. .
  30. .
  31. .
  32. .
  33. .

 



<== | ==>
Text(2.1, 0.9, '\leftarrowsin(x)'); grid on | .
:


: 2017-03-18; !; : 336 |


:

:

: , .
==> ...

2314 - | 1926 -


© 2015-2024 lektsii.org - -

: 0.019 .