1

I have a cell array which contains 7 matrices of varying column and length size. I have tried using the function 'dlmcell' which is downloadable from the MATLAB website but is says "Text exceeds maximum line length of 25000 characters for Command Window Display".

I have looked at a few other examples of saving the arrays but none of them seem to be able to deal with the structure of the cell or the size of the file.

The main aim for me is to save the cell so that I may later import it. Is there no specific format that MATLAB uses (like .mat for example) to store the cell arrays?

Thanks in advance!

4

1 回答 1

6

对我来说就像save正常工作一样:

>> cellarray = {1:1000; 'my cell array'}

cellarray = 

    [1x1000 double]
    'my cell array'

>> save('cellarray','cellarray')
   %# filename---^   ^--- variable name
>> clear all
>> load('cellarray')
>> cellarray

cellarray = 

    [1x1000 double]
    'my cell array'

cellarray.mat在当前目录中保存为 matfile。您可以使用load. 我错过了什么吗?它比这更复杂吗?

于 2012-06-30T23:44:00.873 回答