Create an imat_shp object.
s=imat_shp
s=imat_shp(m,n,p,...)
s=imat_shp(m,n,p,...,'Attr',value,...)
s=imat_shp('Attr',value,...)
s=imat_shp(m,n,p,...,v)
s=imat_shp(v)
s=imat_shp(imat_result)
You call imat_shp to construct an imat_shp object. An imat_shp object contains mode shape coefficients as well as natural frequencies, damping, and node labels.
Calling imat_shp with no arguments creates an empty shape object.
If the first one or more arguments to imat_shp are integers, then an mxnxpx... mode shape is created. Each element of this object is a single mode shape. (Alternatively, the dimension of the mode shape can be specified by a row vector of dimensions, as in imat_shp([2 2]).) The output shape will have the default attributes, which can be changed by setdef.
To override default attributes at time of object creation, you can specify one or more attribute names and values in the call to imat_shp. This is equivalent to creating the object with default attributes, and then setting the specified attributes in sequential order.
Instead of a list of attribute names and values, you may supply a structure variable v with field names equal to attribute names, and field values set to the desired attribute values. (Such a structure can be obtained from the get function with multiple attribute requests.)
A convenient way to create a new mode shape object is with the build_shape function.
If the input is an imat_result object, IMAT_SHP creates an imat_shp from the supplied imat_result object. It creates one shape for each result of type Data At Nodes.
>> s=imat_shp(3,'frequency',[1.55;2.36;4.02],'damping',0.01)
s =
3x1 IMAT Shape with the following attributes:
Row Frequency Damping
NumberNodes
--- ------------------- ------------------- -------------------
1 1.55 0.01 0
2 2.36 0.01 0
3 4.02 0.01 0
>>
imat_shp/setdef, imat_shp/set, imat_shp/get , imat_ctrace/build_shape, result