Home > classes > @fsdata > get.m

get

PURPOSE ^

SET an fsdata property.

SYNOPSIS ^

function val = get(fsd, propName)

DESCRIPTION ^

 SET an 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.6 2007/06/18 11:00:23 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 % SET an 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.6 2007/06/18 11:00:23 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 error('sdfsdf');
0032   case 'version'
0033     val = fsd.version;
0034   case 'fs'
0035     val = fsd.fs;
0036   case 'f'
0037     val = fsd.f;
0038   case 'enbw'
0039     val = fsd.enbw;
0040   case 'navs'
0041     val = fsd.navs;
0042   case 'xx'
0043     val = fsd.xx;
0044   case 'xunits'
0045     val = fsd.xunits;
0046   case 'yunits'
0047     val = fsd.yunits;
0048   otherwise
0049     error([propName, ' is not a valid fsdata property.']);
0050 end

Generated on Mon 02-Jul-2007 12:19:41 by m2html © 2003