Main Content

trimAirframe

Trim airframe around operating point specification object

Description

example

trimAirframe(modelToAnalyze)trims the airframe around an operating point specification object. ATrim Airframedialog window prompts you to select an operating point specification object from the base workspace. If an operating point specification object does not exist in the base workspace, click theLaunch Trim Toolbutton in theTrim Airframedialog window. This button starts the金宝app®Control Design™Model Linearizer in which you can create the operating point specification object. From this object, thetrimAirframefunction trims the airframe.

trimAirframe(modelToAnalyze,opSpec)trims the airframe model around the specified operating point specification object.

Examples

collapse all

Trim the modelSkyHoggAnalysisModelaround an operating point specification object,opSpecDefault. This example starts the flight control analysis template usingasbFlightControlAnalysisand trims the model around theopSpecDefaultoperating point. It then linearizes the airframe model around theopTrimoperating point specification object and calculates the short- and long-period (phugoid) mode characteristics oflinSys.

asbFlightControlAnalysis('3DOF','SkyHoggAnalysisModel'); opSpecDefault = SkyHogg3DOFOpSpec('SkyHoggAnalysisModel'); opTrim = trimAirframe('SkyHoggAnalysisModel', opSpecDefault); linSys = linearizeAirframe('SkyHoggAnalysisModel', opTrim) flyingQual = computeLongitudinalFlyingQualities('SkyHoggAnalysisModel', linSys)

Input Arguments

collapse all

Model on which to perform flight control analysis using the linear state-space modellinSys. This model must be previously created with theasbFlightControlAnalysisfunction.

Data Types:char|string

Linear state-space model used to perform flight control analysis onmodelToAnalyze.

Data Types:char|string

Limitations

This function requires theSimulink Control Designlicense.

Version History

Introduced in R2018b