Model { Name "pitchol" Version 2.00 SimParamPage Solver SampleTimeColors off WideVectorLines off PaperOrientation landscape StartTime "0.0" StopTime "10.0" Solver ode45 RelTol "1e-3" AbsTol "1e-6" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption RefineOutputTimes OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg warning MinStepSizeMsg warning UnconnectedInputMsg warning UnconnectedOutputMsg warning UnconnectedLineMsg warning ConsistencyChecking off ZeroCross on BlockDefaults { Orientation right ForegroundColor black BackgroundColor white DropShadow off NamePlacement normal FontName "Helvetica" FontSize 10 FontWeight normal FontAngle normal ShowName on } AnnotationDefaults { HorizontalAlignment center VerticalAlignment middle ForegroundColor black BackgroundColor white DropShadow off FontName "Helvetica" FontSize 10 FontWeight normal FontAngle normal } System { Name "pitchol" Location [403, 128, 760, 289] Open on ScreenColor white Block { BlockType SubSystem Name "Plane Pitch\nModel" Position [195, 15, 255, 75] ShowPortLabels on System { Name "Plane Pitch\nModel" Location [203, 331, 659, 531] Open off ScreenColor white Block { BlockType Inport Name "deltac" Position [15, 35, 35, 55] Port "1" PortWidth "-1" SampleTime "-1" } Block { BlockType StateSpace Name "A" Position [225, 90, 255, 120] Orientation left A "[]" B "[]" C "[]" D "K" X0 "0" MaskType "Matrix Gain" MaskDescription "Matrix Gain." MaskHelp "Multiplies input vector by entered matrix " "to produce output vector (y=Au)." MaskPromptString "Gain matrix:" MaskStyleString "edit" MaskInitialization "K=@1; " MaskDisplay "disp('K')" MaskIconFrame on MaskIconOpaque on MaskIconRotate off MaskIconUnits autoscale MaskValueString "A" } Block { BlockType StateSpace Name "B" Position [90, 30, 120, 60] A "[]" B "[]" C "[]" D "K" X0 "0" MaskType "Matrix Gain" MaskDescription "Matrix Gain." MaskHelp "Multiplies input vector by entered matrix " "to produce output vector (y=Au)." MaskPromptString "Gain matrix:" MaskStyleString "edit" MaskInitialization "K=@1; " MaskDisplay "disp('K')" MaskIconFrame on MaskIconOpaque on MaskIconRotate off MaskIconUnits autoscale MaskValueString "B" } Block { BlockType StateSpace Name "C" Position [315, 40, 345, 70] A "[]" B "[]" C "[]" D "K" X0 "0" MaskType "Matrix Gain" MaskDescription "Matrix Gain." MaskHelp "Multiplies input vector by entered matrix " "to produce output vector (y=Au)." MaskPromptString "Gain matrix:" MaskStyleString "edit" MaskInitialization "K=@1; " MaskDisplay "disp('K')" MaskIconFrame on MaskIconOpaque on MaskIconRotate off MaskIconUnits autoscale MaskValueString "C" } Block { BlockType StateSpace Name "D" Position [315, 135, 345, 165] A "[]" B "[]" C "[]" D "K" X0 "0" MaskType "Matrix Gain" MaskDescription "Matrix Gain." MaskHelp "Multiplies input vector by entered matrix " "to produce output vector (y=Au)." MaskPromptString "Gain matrix:" MaskStyleString "edit" MaskInitialization "K=@1; " MaskDisplay "disp('K')" MaskIconFrame on MaskIconOpaque on MaskIconRotate off MaskIconUnits autoscale MaskValueString "D" } Block { BlockType Integrator Name "Integrator" Position [225, 40, 255, 70] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum" Position [160, 37, 190, 68] Inputs "++" } Block { BlockType Sum Name "Sum1" Position [375, 47, 405, 78] Inputs "++" } Block { BlockType Outport Name "theta" Position [425, 55, 445, 75] Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "X" Position [425, 15, 445, 35] Port "2" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "theta" DstPort 1 } Line { SrcBlock "deltac" SrcPort 1 Points [20, 0] Branch { Points [0, 105] DstBlock "D" DstPort 1 } Branch { DstBlock "B" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 Points [15, 0] Branch { Points [0, 50] DstBlock "A" DstPort 1 } Branch { Points [15, 0] Branch { Points [0, -30] DstBlock "X" DstPort 1 } Branch { DstBlock "C" DstPort 1 } } } Line { SrcBlock "D" SrcPort 1 Points [10, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "C" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "B" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "A" SrcPort 1 Points [-80, 0; 0, -45] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator" DstPort 1 } Annotation { Position [278, 37] Text "X" } Annotation { Position [210, 37] Text "d/dt(X)" } } } Block { BlockType Scope Name "Scope" Position [310, 15, 340, 45] Floating off Location [188, 365, 512, 604] Open off Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Step Name "Step" Position [25, 30, 55, 60] Time "0" Before "0" After "1" } Line { SrcBlock "Step" SrcPort 1 DstBlock "Plane Pitch\nModel" DstPort 1 } Line { SrcBlock "Plane Pitch\nModel" SrcPort 1 DstBlock "Scope" DstPort 1 } } }