Home > classes > @xydata > get.m

get

PURPOSE ^

GET get xydata properties.

SYNOPSIS ^

function val = get(xy, propName)

DESCRIPTION ^

 GET get xydata properties.

     name = get(xy, 'name');
        x = get(xy, 'x');
        y = get(xy, 'y');
   xunits = get(xy, 'xunits');
   yunits = get(xy, 'yunits');
 
 M Hewitson 30-01-07
 
 $Id: get.html,v 1.1 2007/06/08 14:15:09 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(xy, propName)
0002 
0003 % GET get xydata properties.
0004 %
0005 %     name = get(xy, 'name');
0006 %        x = get(xy, 'x');
0007 %        y = get(xy, 'y');
0008 %   xunits = get(xy, 'xunits');
0009 %   yunits = get(xy, 'yunits');
0010 %
0011 % M Hewitson 30-01-07
0012 %
0013 % $Id: get.html,v 1.1 2007/06/08 14:15:09 hewitson Exp $
0014 %
0015 
0016 switch propName
0017   case 'name'
0018     val = xy.name;
0019   case 'created'
0020     val = xy.created;
0021   case 'version'
0022     val = xy.version;
0023   case 'x'
0024     val = xy.x;
0025   case 'y'
0026     val = xy.y;
0027   case 'xunits'
0028     val = xy.xunits;
0029   case 'yunits'
0030     val = xy.yunits;
0031   otherwise
0032     error([propName, ' is not a valid xydata property.']);
0033 end

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003