I want to load 516 Mat files(240×320)into a 3D Matrix A(240,320,516)
The files are called PVCWARM00071,….,PVCWARM0007516
my code so far:
A = zeros(240,320,516)
nummer=0
>> for i= 1:516
nummer = nummer +1
ext = '.MAT'
naam = 'PVCWARM0007'
file= strcat(naam,num2str(nummer),ext)
A(:,:,i) = load(file)
end
i get the error:Conversion to double from struct is not possible. i already tried to make some adjustments with struct2cell and cell2mat without result.
Can someone help?
Thanks
Best Answer