Hello,
how can you create a large complex array in a matfile without allocating memory for the whole array?
The following works perfectly well for real data:
matObj = matfile(filename, 'Writable', true);matObj.data(rows,cols,channels,channels) = 0;
I tried changing it to:
matObj = matfile(filename, 'Writable', true);matObj.data(rows,cols,channels,channels) = 1i;
which raises the following error:
The class and attributes of the right hand side couldnot be converted into the type of the variable in thefile.
Thank you in advance!
Best Answer