get

PURPOSE ^

GET - gets model propertie from a specified object ans returns the value

SYNOPSIS ^

function val = get(a, propName)

DESCRIPTION ^

GET - gets model propertie from a specified object ans returns the value
 
   Usage:
      val = get(a, propName)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(a, propName)
0002 %GET - gets model propertie from a specified object ans returns the value
0003 %
0004 %   Usage:
0005 %      val = get(a, propName)
0006 
0007 switch propName
0008 case 'numberofelements'
0009     val = a.numberofelements;
0010 case 'numberofgrids'
0011     val = a.numberofgrids;
0012 case 'elements' 
0013     val = a.elements;
0014 case 'x' 
0015     val = a.x;
0016 case 'y' 
0017     val = a.y;
0018 case 'z' 
0019     val = a.z;
0020 otherwise
0021     error(['get error message: ' propName,' is not a valid model property'])
0022 end

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003