cpsdplot

Plot MotionSolve Frequency Response Functions (FRFs) estimated from output/input signals cpsd versus input signals pwelch.

Syntax

cpsdplot(xml,typ,res,com,reft,refr,refc)

cpsdplot(xml,typ,res,com,reft,refr,refc,tw)

cpsdplot(xml,typ,res,com,reft,refr,refc,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
reft
Reference result type.
Type: char
Dimension: string
refr
Reference result name / request.
Type: char
Dimension: string
refc
Reference result component.
Type: char
Dimension: string
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.

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

Comments

This function creates a comparison plot of MotionView results in time and frequency domains by estimated FRF between multiple outputs signals and one single input signal (leveraging cross power spectral density).