I am trying to use the ISPROP function to determine whether a property belongs to an object of a user-defined class. The class definition is as follows
classdef foo properties bar=1; bus = 0; endend
When I use the ISPROP functionality with the FOO class, ISPROP always returns the result false.
f = foo; % instantiate object of class foo
f.bar; % prove that object f has property 'bar'
isprop(f,'bar') % shows that isprop returns false
Best Answer