Convert an imat_result to a different unit system.
r1=chgunits(r,from,to)
CHGUNITS converts an imat_result to a different system of units. This affects the data values (Data attribute), the modal mass (ModalMass attribute), the stiffness (Stiffness attribute), the modal A value (ModalA attribute), and the modal B value (ModalB attribute).
The FROM argument is the unit system that r is expressed in currently. The to argument is the desired unit system (if to is omitted, the current unit system is assumed). The unit system arguments should either be unit strings (such as 'SI') or should be 5x1 vectors of unit conversion factors as returned by the getunits function.
If you follow the recommended practice of setting your units at the start of a session and maintaining consistency, you should not need to use this function.
>> r=chgunits(r,'mm','in'); % Change r from MM to IN