Get one or more attributes of an imat_ctrace object.
v=get(t,'Attrib')
v=get(t,'Attrib1','Attrib2',...)
v=get(t)
When applied to an imat_ctrace object t, the GET function returns the values of selected attributes of t. Attribute names are not case sensitive.
If only a single attribute is requested, then the value of that attribute is returned, or printed if no output argument is supplied. If more than one attribute is specified, then the output argument will be a scalar structure variable with field names equal to the requested attributes. The value of each field will be the contents of that attribute of the imat_ctrace object. If no output argument is supplied, the resulting structure will be printed on the standard output.
If no attributes are specified, then the values of all attributes will be returned as described above.
An alternative to the GET function is the syntax t.attrib.
>> t=imat_ctrace('1x','2x','3y')
t =
'1X+'
'2X+'
'3Y+'
>> get(t)
Id: [3x5 double]
Name: ''
Description: ''
Version: 2
>> v=get(t,'id')
v =
1 88 43 32 32
2 88 43
32 32
3 89 43
32
>> get(t,'id','desc')
Id: [3x5 double]
Description: ''
>>