0001 function val = get(ao, propName)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 switch propName
0015 case 'tag'
0016 val = ao.tag;
0017 case 'name'
0018 val = ao.name;
0019 case 'data'
0020 val = ao.data;
0021 case 'hist'
0022 val = ao.hist;
0023 case 'provenance'
0024 val = ao.provenance;
0025 case 'comment'
0026 val = ao.comment;
0027 case 'mfile'
0028 val = ao.mfile;
0029 case 'mfilename'
0030 val = ao.mfilename;
0031 case 'mdlfile'
0032 val = ao.mdlfile;
0033 case 'mdlfilename'
0034 val = ao.mdlfilename;
0035
0036
0037 case 'fs'
0038 val = get(ao.data, 'fs');
0039
0040 otherwise
0041 error([propName, ' is not a valid ao property.']);
0042 end