MATLAB: How to save/load cell data in/from matlab binary file with another extension

binarycellextensionsave

I have a cell variable containing several data types (string, logical, numeric), which I have to save/load. I can use the *.mat format of corse, but I need to use different file extension than "mat". Is there any other way, than rename the file after creation?

Best Answer

>> A = 1;
>> save('test.xyz','A','-mat')
>> clear
>> S = load('test.xyz','-mat');
>> S.A
ans = 1