MATLAB , . - double, char, sparse, uint8, cell, struct. , MATLAB .
MATLAB (. 3.26):
3.26
: (double) (char), . , MATLAB .
, (sparse), (uint8), (cell struct).
numeric array. , , .
uint8 . , . double.
. - UserObject. MATLAB .
, . , uint8, (sort.m sort.mex) @uint8.
3.2 , MATLAB.
3.2
Double | [12;34] 5 + 6i | ( MATLAB |
Char | '' | ( - 16 ), . |
Sparse | Speye(5) | ( ). , , . . |
Cell | (17 '' eye (2)) | . . , , . |
Struct | A.day = 12; A.color = 'Red'; A.mat = magic(3); | . . . , c . |
Uint8 | Uint8 (magic (3)) | 8- . 0 255 1/8 , . . |
UserObject | inline('sin(x)') | , |
|
|
, MATLAB , , MATLAB .
:
-
-
-
-
MATLAB . MATLAB , . , MATLAB . ,
d = 25
1x1 d 25 .
, . MATLAB 31 .
MATLAB , . .
MATLAB , - . . i j .
long, IE. - 16 10-308 10308.
, MATLAB ,
.
+ | |
- | |
* | |
/ | |
\ | |
^ | |
() |
: , , . , .
.
. :
< | |
<= | |
> | |
>= | |
== | |
~= |
:
& | |
| | |
~ |
"" ( ) "" ( ). "" ( ), 1 (""); "" 0 (). "" 0 () , ( ) . , "" "" "" . , , 0, , "" .
|
|
.
: , . , .
MATLAB , abs, sqrt, exp, sin. : . MATLAB . .
, sqrt sin - . MATLAB, , . -. , , .
,
pi | 3.14159265... |
i | |
j | , i |
eps | , 2-52 |
realmin | , 2-1022 |
realmax | , 21023 |
Inf | |
NaN |
, , .. realmax. (NaN) 0-0, .
, , .
MATLAB , , , .
.
a^x | |
x^a | |
sqrt(x) | |
exp(x) | |
log(x) | |
log10(x) | |
abs(x) | |
fix(x) | |
floor(x) | |
round(x) | |
ceil(x) | |
rem(x,y) | x y |
mod(x,y) | x y |
sign(x) | |
factor(x) | x |
sin(x) | |
sinh(x) | |
asin(x) | |
asinh(x) | |
cos(x) | |
cosh(x) | |
acos(x) | |
acosh(x) | |
tan(x) | |
tanh(x) | |
atan(x) | |
atanh(x) | |
cot(x) | |
coth(x) | |
acot(x) | |
acoth(x) |
.
|
|
MATLAB :
exp(-2.5)*log(11.3)^0.3-sqrt((sin(2.45*pi)+cos(3.78*pi))/tan(3.3));