我想加载工作空间中已经存在的特定列格式.mat文件,加载后我应该怎么写呢?
问问题
7823 次
1 回答
3
You can access part of a variable saved in a MAT file using MATFILE constructor (available since R2011b). Check my answer to another similar question.
For example, if you have matrix a
saved in matlab.mat
file you constract the matfile object as
matObj = matfile('matlab.mat');
Then you can access 2nd column like x = matObj.a(:,2);
.
于 2012-04-02T15:17:34.047 回答