フィルターのクリア

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

1 回表示 (過去 30 日間)
Feng
Feng 2012 年 8 月 9 日
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 Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by