Model { Name "mras_ljap" Version 2.20 SimParamPage Solver SampleTimeColors off InvariantConstants off WideVectorLines on ShowLineWidths on StartTime "0.0" StopTime "inf" 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 SimulationMode normal RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWPlaceOutputsASAP off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off 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 } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight normal FontAngle normal } System { Name "mras_ljap" Location [66, 150, 706, 642] Open on ToolBar on StatusBar on ScreenColor white PaperOrientation landscape PaperPositionMode auto PaperType usletter PaperUnits inches Block { BlockType Reference Name "A" Ports [1, 1, 0, 0, 0] Position [405, 230, 435, 260] Orientation left ForegroundColor red SourceBlock "simulink/Linear/Matrix\nGain" SourceType "Matrix Gain" K "A" } Block { BlockType Reference Name "Am" Ports [1, 1, 0, 0, 0] Position [405, 130, 435, 160] Orientation left SourceBlock "simulink/Linear/Matrix\nGain" SourceType "Matrix Gain" K "Am" } Block { BlockType Reference Name "B" Ports [1, 1, 0, 0, 0] Position [310, 180, 340, 210] ForegroundColor red SourceBlock "simulink/Linear/Matrix\nGain" SourceType "Matrix Gain" K "B" } Block { BlockType Reference Name "Band-Limited\nWhite Noise" Ports [0, 1, 0, 0, 0] Position [30, 35, 60, 65] ForegroundColor blue SourceBlock "simulink/Sources/Band-Limited\nWhite Noise" SourceType "Continuous White Noise." Cov "[0.2]" Ts "0.1" seed "[23341]" } Block { BlockType Reference Name "Bm" Ports [1, 1, 0, 0, 0] Position [305, 85, 335, 115] SourceBlock "simulink/Linear/Matrix\nGain" SourceType "Matrix Gain" K "Bm" } Block { BlockType Display Name "Display K1" Ports [1, 0, 0, 0, 0] Position [45, 372, 135, 458] Orientation left Format short Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display K2" Ports [1, 0, 0, 0, 0] Position [185, 372, 275, 458] Format short Decimation "1" Floating off SampleTime "-1" } Block { BlockType Sum Name "E" Ports [2, 1, 0, 0, 0] Position [470, 138, 485, 167] Inputs "-+" } Block { BlockType Product Name "E*W" Ports [2, 1, 0, 0, 0] Position [100, 316, 130, 349] Orientation left Inputs "2" } Block { BlockType Product Name "E*X" Ports [2, 1, 0, 0, 0] Position [100, 266, 130, 299] Orientation left Inputs "2" } Block { BlockType Sum Name "E1" Ports [2, 1, 0, 0, 0] Position [280, 178, 295, 207] ForegroundColor blue Inputs "+-" } Block { BlockType SubSystem Name "Flush Pulse" Ports [0, 0, 0, 0, 0] Position [450, 339, 582, 373] ForegroundColor blue ShowName off OpenFcn "Am=[-2], Bm=[1.5] , nreg=1, K=1, A=[-1], B=[" "1]" FontName "helvetica" FontSize 12 ShowPortLabels on MaskDisplay "disp('Double Click\\nto Init Example 1!')" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale System { Name "Flush Pulse" Location [62, 393, 431, 487] Open off ToolBar off StatusBar off ScreenColor white PaperOrientation landscape PaperPositionMode auto PaperType usletter PaperUnits inches } } Block { BlockType SubSystem Name "Flush Pulse1" Ports [0, 0, 0, 0, 0] Position [450, 384, 582, 418] ForegroundColor blue ShowName off OpenFcn "Am=[0 1; -2 -2], Bm=[0; 4] , nreg=2, K=10, A=" "[0 1; -1 -4], B=[0; 1]" FontName "helvetica" FontSize 12 ShowPortLabels on MaskDisplay "disp('Double Click\\nto Init Example 2!')" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale System { Name "Flush Pulse1" Location [62, 393, 431, 487] Open off ToolBar off StatusBar off ScreenColor white PaperOrientation landscape PaperPositionMode auto PaperType usletter PaperUnits inches } } Block { BlockType SubSystem Name "Flush Pulse2" Ports [0, 0, 0, 0, 0] Position [450, 429, 582, 463] ForegroundColor blue ShowName off OpenFcn "Am=[0 1 0; 0 0 1; -0.5 -2 -2.5], Bm=[0; 0; 4] ," " nreg=3, K=0.05, A=[0 1 0; 0 0 1; -1 -1 -4], B=[0; 0; 1]" FontName "helvetica" FontSize 12 ShowPortLabels on MaskDisplay "disp('Double Click\\nto Init Example 2!')" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale System { Name "Flush Pulse2" Location [62, 393, 431, 487] Open off ToolBar off StatusBar off ScreenColor white PaperOrientation landscape PaperPositionMode auto PaperType usletter PaperUnits inches } } Block { BlockType Gain Name "H" Position [55, 205, 85, 235] Gain "K" } Block { BlockType Product Name "H*X" Ports [2, 1, 0, 0, 0] Position [190, 196, 220, 229] ForegroundColor blue Inputs "2" } Block { BlockType Integrator Name "Integrator" Ports [1, 1, 0, 0, 0] Position [405, 85, 435, 115] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "Integrator1" Ports [1, 1, 0, 0, 0] Position [405, 185, 435, 215] ForegroundColor red ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Gain Name "L" Position [50, 155, 80, 185] Gain "-K" } Block { BlockType Product Name "L*W" Ports [2, 1, 0, 0, 0] Position [190, 146, 220, 179] ForegroundColor blue Inputs "2" } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [560, 140, 590, 170] Floating off Location [569, 427, 974, 683] Open on Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-0.5" YMax "0.5" SaveToWorkspace off SaveName "ScopeData" LimitMaxRows on MaxRows "50000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [1, 0, 0, 0, 0] Position [560, 85, 590, 115] Floating off Location [562, 141, 967, 397] Open on Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-2" YMax "2" SaveToWorkspace off SaveName "ScopeData" LimitMaxRows on MaxRows "50000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Selector Name "Selector" Position [225, 325, 255, 355] Orientation left Elements "[nreg]" InputPortWidth "nreg" } Block { BlockType SignalGenerator Name "Signal\nGenerator" Position [25, 90, 55, 120] ForegroundColor blue WaveForm square Amplitude "1" Frequency "0.3" Units Hertz } Block { BlockType Sum Name "Sum1" Ports [2, 1, 0, 0, 0] Position [370, 183, 385, 212] ForegroundColor red Inputs "++" } Block { BlockType Sum Name "Sum2" Ports [2, 1, 0, 0, 0] Position [370, 83, 385, 112] Inputs "++" } Block { BlockType Sum Name "Sum3" Ports [1, 1, 0, 0, 0] Position [235, 205, 255, 225] ForegroundColor blue Inputs "+" } Block { BlockType Reference Name "Switch" Ports [2, 1, 0, 0, 0] Position [100, 82, 130, 113] ForegroundColor blue SourceBlock "simulink/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Integrator Name "par H" Ports [1, 1, 0, 0, 0] Position [100, 204, 130, 236] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "par L" Ports [1, 1, 0, 0, 0] Position [100, 154, 130, 186] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Line { SrcBlock "Signal\nGenerator" SrcPort 1 DstBlock "Switch" DstPort 2 } Line { SrcBlock "Band-Limited\nWhite Noise" SrcPort 1 Points [20, 0] DstBlock "Switch" DstPort 1 } Line { SrcBlock "L*W" SrcPort 1 Points [40, 0] DstBlock "E1" DstPort 1 } Line { SrcBlock "H*X" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 Points [5, 0] DstBlock "E1" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Am" SrcPort 1 Points [-45, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "A" SrcPort 1 Points [-45, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "B" SrcPort 1 Points [10, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Bm" SrcPort 1 Points [15, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [10, 0] Branch { Points [0, -40] DstBlock "E" DstPort 2 } Branch { Points [0, 45] Branch { DstBlock "A" DstPort 1 } Branch { Points [0, 30; -275, 0] Branch { DstBlock "H*X" DstPort 1 } Branch { DstBlock "E*X" DstPort 1 } } } } Line { SrcBlock "E1" SrcPort 1 DstBlock "B" DstPort 1 } Line { SrcBlock "par H" SrcPort 1 Points [30, 0] Branch { DstBlock "H*X" DstPort 2 } Branch { Points [0, 195] DstBlock "Display K2" DstPort 1 } } Line { SrcBlock "E" SrcPort 1 Points [5, 0] Branch { DstBlock "Scope" DstPort 1 } Branch { Points [0, 135; -210, 0] Branch { DstBlock "E*X" DstPort 2 } Branch { Points [0, 50] DstBlock "Selector" DstPort 1 } } } Line { SrcBlock "L" SrcPort 1 DstBlock "par L" DstPort 1 } Line { SrcBlock "H" SrcPort 1 DstBlock "par H" DstPort 1 } Line { SrcBlock "E*W" SrcPort 1 Points [-70, 0; 0, -165] DstBlock "L" DstPort 1 } Line { SrcBlock "E*X" SrcPort 1 Points [-55, 0] DstBlock "H" DstPort 1 } Line { SrcBlock "Switch" SrcPort 1 Points [10, 0] Branch { Points [25, 0] Branch { DstBlock "Bm" DstPort 1 } Branch { Points [0, 55] DstBlock "L*W" DstPort 1 } } Branch { DstBlock "E*W" DstPort 1 } } Line { SrcBlock "par L" SrcPort 1 Points [20, 0] Branch { DstBlock "L*W" DstPort 2 } Branch { Points [0, 245] DstBlock "Display K1" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0] Branch { Points [0, 45] Branch { DstBlock "Am" DstPort 1 } Branch { DstBlock "E" DstPort 1 } } Branch { DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "Selector" SrcPort 1 DstBlock "E*W" DstPort 2 } Annotation { Position [300, 44] Text "Model Reference Adaptive System\nLjapunov Rules" FontName "helvetica" FontSize 20 } } }