Home > classes > @fsdata > get.m

get

PURPOSE ^

GET get a fsdata property.

SYNOPSIS ^

function val = get(fsd, propName)

DESCRIPTION ^

 GET get a fsdata property.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: GET get fsdata properties.

 CALL:    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');

 VERSION: $Id: get.m,v 1.8 2007/07/30 12:18:28 ingo Exp $

 HISTORY: 30-01-07 M Hewitson
             Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(fsd, propName)
0002 % GET get a fsdata property.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: GET get fsdata properties.
0007 %
0008 % CALL:    name    = get(fsd, 'name');
0009 %          fs      = get(fsd, 'fs');
0010 %          f       = get(fsd, 'f');
0011 %          enbw    = get(fsd, 'enbw');
0012 %          navs    = get(fsd, 'navs');
0013 %          xx      = get(fsd, 'xx');
0014 %          xunits  = get(fsd, 'xunits');
0015 %          yunits  = get(fsd, 'yunits');
0016 %          created = get(fsd, 'created');
0017 %          version = get(fsd, 'version');
0018 %
0019 % VERSION: $Id: get.m,v 1.8 2007/07/30 12:18:28 ingo Exp $
0020 %
0021 % HISTORY: 30-01-07 M Hewitson
0022 %             Creation
0023 %
0024 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0025 
0026 switch propName
0027   case 'name'
0028     val = fsd.name;
0029   case 'created'
0030     val = fsd.created;
0031   case 'version'
0032     val = fsd.version;
0033   case 'fs'
0034     val = fsd.fs;
0035   case 'f'
0036     val = fsd.f;
0037   case 'enbw'
0038     val = fsd.enbw;
0039   case 'navs'
0040     val = fsd.navs;
0041   case 'xx'
0042     val = fsd.xx;
0043   case 'xunits'
0044     val = fsd.xunits;
0045   case 'yunits'
0046     val = fsd.yunits;
0047   otherwise
0048     error([propName, ' is not a valid fsdata property.']);
0049 end

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003