MATLAB: Change the name of structure inside a cell

cellnamesstructure

Hello,
I got the cell names stuff with 2 field values. When I open "stuff" i see a message "1×1 struct", can i change this display to like say "1×1 NAMEIWANT"?
names = {'f1', 'f2'};
values = {1 2};
args=[names;values];
structure = struct(args{:});
stuff{1,1} = structure;
stuff{1,2} = structure;
Thanks for your time, happy holidays

Best Answer

In your screenshot, mlrModel, fsrModel, etc. are the name of classes. They may look like structures but these things are absolutely not structures, they're objects, instances of classes. In order to get a mlrModel you would have to call whichever function creates such objects, possibly the class constructor, with the appropriate inputs. While matlab provides a way to convert objects to structures there is no reverse operation other than what is provided explicitly by whomever wrote these classes.
In conclusion, look at the documentation of whatever library you're using to find out how to create these objects. They're not structures.