fname = dir('*sir');
[tmp, head] = loadsir(fname(1).name);
dayH = zeros(length(fname),size(tmp,1),size(tmp,2));
% use temporary array to simplify 3d array creation
for i=1:1
tmp = loadsir(fname(i).name);
dayH(i,:,:) = tmp;
end
我上面有这段代码,但我得到的是:
Error using zeros
Out of memory
Error in dataAnalysis (line 4)
dayH = zeros(length(fname),size(tmp,1),size(tmp,2));