fftplot

Plot MotionSolve Fast Fourier Transforms (FFTs) computed from output signals.

Syntax

fftplot(xml,typ,res,com)

fftplot(xml,typ,res,com,tw)

fftplot(xml,typ,res,com,tw,few)

Inputs

xml
XML file names (without extension).
Type: char
Dimension: cell
typ
Result type.
Type: char
Dimension: string
res
Result name(s) / request(s).
Type: char
Dimension: string | cell
com
Result component(s).
Type: char
Dimension: string | cell
tw
Time window window in a 2-element vector form.
Type: double
Dimension: vector
few
Frequency exponent window in a 2-element vector form.
Type: double
Dimension: vector

Examples

Example with results from a landing gear model.

fftplot({'./LandingGear_Retracted/ldg_retracted';'./LandingGear_Deployed/ldg_deployed'},'Expressions','dxyz',{'DXleft';'DYleft';'DZleft'},[0.2,10],[0.5,2.5]);

Comments

This function creates a comparison plot of MotionView results in time and frequency domains by FFT of multiple output signals.