Differentiate the supplied imat_fn.
g=diff(f)
g=diff(f,'freq')
DIFF will differentiate the supplied imat_fn F, and return the output in G. Two types of differentiation are supported. The default type is the simple dy/dx differentiation. If TYPE is set to 'freq', then DIFF will perform a frequency differentiation using the i*omega operator. Note that frequency differentiation can only operate on functions with an AbscissaDataType of Frequency. Any other type will result in an error.
DIFF will automatically modify the ordinate numerator data type from Displacement to Velocity to Acceleration to General. It also handles acceleration units in G's and EU's.