Excel, , , (MatLab ). A1 C3 , Excel.
putmatrix, Excel , MatLab . OK, MatLab.
Excel , MatLab, Excel. , OK. MatLab , , :
MatLab , , .
inv , MatLab Excel. evalstring, Excel Link, , MatLab
IM=inv(M).
MatLab.
Excel, A5 getmatrix. , , Excel. IM. OK, A5 A7 .
, MatLab Excel, , . , , .
Excel, MatLab, Excel. Excel Link. , .. . , , , , - - MatLab. - - Excel.
-
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 2π,
, Figure 1
MatLab ( , ), .
hold on . subplot
Print File print MatLab. Print , . print -. , , .
, . , PCA, PLS.