Code covered by the BSD License  

Highlights from
Mia 2.4

image thumbnail

Mia 2.4

by

 

02 Apr 2004 (Updated )

Medical Image Analysis GUI.

pushset(handle,prop,value)
function pushset(handle,prop,value)
% PUSHSET - push new properties onto a value stack.
%
% PUSHSET(HANDLE, PROP, VALUE) will take the old value of PROP for
% HANDLE, and save it on a stack associated with HANDLE.  It then
% assigns VALUE as the new value.
%

  %nargchk(3,3,'wrong number of arguments.');

  proplist=fieldnames(get(handle(1)));
  prop=proplist{strcmpi(prop,proplist)};
  appstr = [prop '_hgstack'];

  for k=1:prod(size(handle))

    oldv = get(handle(k),prop);
    olds = getappdata(handle(k),appstr);
    set(handle(k),prop,value);
    setappdata(handle(k),appstr,{ oldv olds });
    
  end

Contact us