how to tell the class of a variable (non-numeric) in a program?

1 次查看(过去 30 天)
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

采纳的回答

Honglei Chen
Honglei Chen 2012-8-9
You can use isa
>> help isa

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by