I have a 1×1 struct called dataout. It consists of several fields, each containing a cell array.
>> dataoutdataout = field1: {6x6 cell} field2: {6x6 cell} field3: {6x6 cell} field4: {6x6 cell}
I want to export this struct to a .mat file so that a = load('file.mat') will result in a struct-variable a containing all fields.
So in the end I want a .mat file which will fulfill the following:
>> a = load('file.mat')a = field1: {6x6 cell} field2: {6x6 cell} field3: {6x6 cell} field4: {6x6 cell}
I have tried save(filename,'dataout') but this results in a .mat-file that reacts differently:
>> save('file.mat','dataout');>> b = load('file.mat')b = dataout: [1x1 struct]
Can somebody help me?
Best Answer