Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (29 sloc) 517 Bytes
function val=getx(oh,prop)
% val=GETX(oh,prop)
%
% Gets a property from a HANDLE or an OBJECT
%
% INPUT
%
% oh The object or handle in question
% prop The property, a string, e.g. 'XData'
%
% OUTPUT
%
% val The value of the requested property
%
% EXAMPLE
%
% getx(plot(1:10),'LineWidth')
%
% SEE ALSO
%
% SETX
%
% Tested on 8.3.0.532 (R2014a) and 9.0.0.341360 (R2016a)
% Last modified by fjsimons-at-alum.mit.edu, 07/01/2016
if verLessThan('matlab','8.4')
val=get(oh,prop);
else
val=oh.(prop);
end