zeros
eye
, , ones
MatLab . rand , , randn , .
diag , .
MatLab . , , '
inv
pinv.
, help datafun, , help max.
-
MatLab , . diary . MatLab -, , , . - -. , .
File MatLab New M-file. M-, .
- MatLab : - (Script M-Files), , -, (Function M-Files), , .
-
,
mydemo.m work MatLab, Save as File . , , Run Debug. Figure 1, .
- . . MatLab , , .
, -, . Figure 1. , , Shift, Text. , , : . , F9.
|
|
- , , -. , :
- Open File , -.
-
- MatLab, . MatLab -, . , -.
. -, , . -
function , -. , . centering, X Xc. , ( ), . , Xc. . . , Save Save as File , File name centering. , !
, sin, cos . - -. -, , .. .
- , . , . , . , , , , .
- .
MatLab , . .
|
|
plot , , plot(y) - y . , plot(x,y) y x. , sin 0 2p,
, Figure 1
MatLab ( , ), .
hold on . subplot
Print File print MatLab. Print , . print -. , , .
, . , PCA, PLS.