MATLAB: Is it possible to use the ISPROP function with user-defined classes in MATLAB 7.6 (R2008a)

MATLAB

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;
end
end
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

The ability to use ISPROP with user-defined classes is not available in MATLAB 7.6 (R2008a). This enhancement has been incorporated in Release 2011a (R2011a) and later.
For previous product releases, a possible workaround is to use the following code to check for properties of object "f":
any(strcmp('bar', properties(f)))