MATLAB: How to exist(obj.struct.var)

MATLABobj struct var exist

exist(obj.struct.var) always returns 0 regardless if the var exists or not.

Best Answer

isfield(obj.struct,'var')