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.

tf=propcheck(obj, prop, value)
function tf=propcheck(obj, prop, value)
% Check to see if PROP for OBJ has VALUE
  
  v=get(obj,prop);

  if isa(v,class(value))
    if isa(v,'char')
      tf=strcmp(v,value);
    else
      if v==value
        tf=1;
      else
        tf=0;
      end
    end
  else
    tf=0;
  end

Contact us