Home > classes > @fsdata > get.m

get

PURPOSE ^

GET get fsdata properties.

SYNOPSIS ^

function val = get(fsd, propName)

DESCRIPTION ^

 GET get fsdata properties.

     name = get(fsd, 'name');
       fs = get(fsd, 'fs');
        f = get(fsd, 'f');
     enbw = get(fsd, 'enbw');
     navs = get(fsd, 'navs');
       xx = get(fsd, 'xx');
   xunits = get(fsd, 'xunits');
   yunits = get(fsd, 'yunits');
  created = get(fsd, 'created');
  version = get(fsd, 'version');

 M Hewitson 30-01-07

 $Id: get.html,v 1.1 2007/06/08 14:15:05 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(fsd, propName)
0002 
0003 % GET get fsdata properties.
0004 %
0005 %     name = get(fsd, 'name');
0006 %       fs = get(fsd, 'fs');
0007 %        f = get(fsd, 'f');
0008 %     enbw = get(fsd, 'enbw');
0009 %     navs = get(fsd, 'navs');
0010 %       xx = get(fsd, 'xx');
0011 %   xunits = get(fsd, 'xunits');
0012 %   yunits = get(fsd, 'yunits');
0013 %  created = get(fsd, 'created');
0014 %  version = get(fsd, 'version');
0015 %
0016 % M Hewitson 30-01-07
0017 %
0018 % $Id: get.html,v 1.1 2007/06/08 14:15:05 hewitson Exp $
0019 %
0020 
0021 switch propName
0022   case 'name'
0023     val = fsd.name;
0024   case 'created'
0025     val = fsd.created;
0026   case 'version'
0027     val = fsd.version;
0028   case 'fs'
0029     val = fsd.fs;
0030   case 'f'
0031     val = fsd.f;
0032   case 'enbw'
0033     val = fsd.enbw;
0034   case 'navs'
0035     val = fsd.navs;
0036   case 'xx'
0037     val = fsd.xx;
0038   case 'xunits'
0039     val = fsd.xunits;
0040   case 'yunits'
0041     val = fsd.yunits;
0042   otherwise
0043     error([propName, ' is not a valid fsdata property.']);
0044 end

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