>> load test.mat Warning: Could not determine the fields for class Foo by calling the
constructor with no input arguments. The object a has been converted to a structure. To eliminate the conversion create an object of class Foo before calling LOAD. >> f.dataelement = 'I am Foo';
>> f = Foo(f); >> load test.mat >> bar
bar =
Foo object: 1-by-1
Ok, restart matlab
>> f.notdataelement = 'I am not Foo'; >> f = Foo(f);
>> load test.mat Warning: Fields of object 'bar' do not match the current constructor definition for class 'Foo'. The object has been converted to a structure.