我在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
以检索数据吗?