📄 ex10_5.mdl
字号:
Model { Name "ex9_5" Version 2.09 SimParamPage Solver SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off PaperOrientation landscape PaperType usletter PaperUnits inches StartTime "0.0" StopTime "100.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 SimulationMode normal RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_vc.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 "ex9_5" Location [498, 40, 762, 160] Open on ScreenColor white Block { BlockType Integrator Name "Integrator" Ports [1, 1, 0, 0, 0] Position [115, 15, 145, 45] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType SubSystem Name "Progress" Tag "prog_bar" Ports [0, 0, 0, 0, 0] Position [105, 80, 156, 104] ShowName off DeleteFcn "prog_bar close_fig" ModelCloseFcn "prog_bar close_fig" NameChangeFcn "prog_bar rename_block" OpenFcn "prog_bar create_fig" ShowPortLabels on MaskPromptString "Bar Handle" MaskStyleString "edit" MaskVariables "h_slider=@1;" MaskDisplay "fprintf('Progress\\nbar');\n" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale MaskValueString "292.000732421875" System { Name "Progress" Location [520, 143, 725, 225] Open off ScreenColor white Block { BlockType Clock Name "Clock" Position [25, 30, 45, 50] DeleteFcn "simclock BlockIsBeingDestroyed" PostSaveFcn "simclock Save" Location [877, 176, 984, 221] } Block { BlockType MATLABFcn Name "MATLAB Fcn" Position [120, 25, 180, 55] MATLABFcn "prog_bar('UpdateTime',h_slider,u(1))" OutputWidth "0" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [70, 25, 100, 55] SampleTime ".5" } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 DstBlock "MATLAB Fcn" DstPort 1 } } } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [200, 15, 230, 45] Floating off Location [127, 52, 451, 291] 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" Tag "prog_bar" Position [35, 15, 65, 45] Time "1" Before "0" After "1" } Line { SrcBlock "Step" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Scope" DstPort 1 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -