필터 지우기
필터 지우기

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 CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by