MATLAB: How to tell the class of a variable (non-numeric) in a program

cell structure

I am reading a header from files. Most of the time, this header is a cell, but sometime it can be a structure with the cell being a field in the struct.
I need to identify the class of the header after I read the file so I can program accordingly.
Any suggestions?
Thanks,
Feng

Best Answer

You can use isa
>> help isa
Related Question