MatLab , , . MatLab , (, ), , , .. .
Command Window . : MatLab, . - >>, MatLab .
, , . , , , , , ( ) < Enter >.
. -, 2+3. 2+3 Command Window.
3.1-1 |
>> 2+3 |
<Enter>. :
3.1-1b |
ans = >> |
<Enter> .
3.1-1 , MatLab ans, ( ). .3.1-2 |
>> a=sin(pi/2) a = >> |
, sin(pi/2), pi MatLab ( , , i - .).
, , :
3.1-2b |
>> a=sin(pi/2); >> |
, (Workspace), .
3.1-2c |
>> aa= 1 >> |
, , , :
3.1-2d |
>> x=3 - ax = 2 >> |
3.1-2 |
>> (y+a)*(y-a)??? Undefined function or variable y.>> |
|
|
, , <Enter > .
, , x = 0.2 y = 3.9:
, . MatLab . <Enter>:
3.1-3 |
>> 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) c = 2.0451 >> |
, .
3.1-3b |
>> 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(), b a <Enter>. <↑> <↓> , . . Command History.
, , <Enter>, disp(), disp(b).
, (, , ) who whos.
cl, clear.
, , , Word . .
, MatLab, double. , 8 [ 10-308;10+308 ], 16. MatLab .
, , .
MatLab , : format Command Window, Command Window.
|
|
MatLab, Command Window, File, Preference, Preferences Command Window (. 3.1-3).
. 3.1-3. MatLab
Text display Preferences Numeric format Numeric display. Numeric format , . 3.1-1.
3.1-1
short | . ( ) |
long | . |
short e | . , |
long e | . , |
short g | short short e |
long g | long long e |
hex | |
+ | : + - ; - - ; - |
rational |
MatLab . Preferences Text display :
compact - ;
loose - .
format . ,
3.1-4 |
>> format short e >> |
Preferences.
, , , short long . .
, MatLab . < ←>, <→> <Backspace > < Delete >. , - < ↑>, <↓> . , , . , m-, MatLab .
3.1-2.
3.1-2
→ | |
← | |
Ctrl+→ | |
Ctrl+← | |
Home | |
End | |
↑ ↓ | |
Del | |
Backspace | |
Ctrl+k | |
Esc | |
Ins | / |
PgUp | |
PgDn |
|
|