【发布时间】:2011-12-13 01:08:32
【问题描述】:
我在 matlab 中使用 classdef 作为类,
classdef scores
% SCORES Summary of this class goes here
% Class for stroring the individual scores array of each of the
% comparison of the models and the test files including the number of
% coefficients used and number of gaussian
properties
detailed_scores;
no_of_gauss=0;
end
methods
end
end
创建对象并保存到数组中;
for i=1:99
score = scores;
score.detailed_scores = somescore(:,9);
score.no_of_gauss = i;
array = [array score];
end
现在,我想将它保存到 matfile 中;
save('somematfile.mat','array');
是否可以稍后加载此array 以检索数据?
【问题讨论】:
标签: arrays class matlab multidimensional-array