Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Feng
Feng le 9 Août 2012
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

Réponse acceptée

Honglei Chen
Honglei Chen le 9 Août 2012
You can use isa
>> help isa

Plus de réponses (0)

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by