📄 clv3d.mdl
字号:
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType StateSpace
Name "State\nSpace"
Position [80, 23, 145, 57]
ShowName off
A "[]"
B "[]"
C "[]"
D "K"
X0 "0"
}
Block {
BlockType Outport
Name "Out1"
Position [170, 33, 200, 47]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "State\nSpace"
DstPort 1
}
Line {
SrcBlock "State\nSpace"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Matrix Gain R"
Ports [1, 1, 0, 0, 0]
Position [340, 130, 370, 160]
ShowPortLabels on
MaskType "Matrix Gain"
MaskDescription "Matrix Gain."
MaskHelp "Multiplies input vector by entered matrix t"
"o produce output vector (y=Au)."
MaskPromptString "Gain matrix:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskVariables "K=@1;"
MaskDisplay "disp('R')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "R"
System {
Name "Matrix Gain R"
Location [162, 233, 402, 326]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType StateSpace
Name "State\nSpace"
Position [80, 23, 145, 57]
ShowName off
A "[]"
B "[]"
C "[]"
D "K"
X0 "0"
}
Block {
BlockType Outport
Name "Out1"
Position [170, 33, 200, 47]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "State\nSpace"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "State\nSpace"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [275, 119, 300, 166]
ShowName off
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [130, 145, 150, 165]
ShowName off
IconShape "round"
Inputs "-+|"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "x"
Position [490, 138, 520, 152]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Matrix Gain A"
SrcPort 1
Points [-30, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "x"
DstPort 1
}
Branch {
Points [0, -60; -215, 0]
Branch {
Points [0, 45]
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Matrix Gain A"
DstPort 1
}
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Matrix Gain R"
DstPort 1
}
Line {
SrcBlock "Matrix Gain R"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Annotation {
Position [122, 32]
Text "Competitive Lotka-Volterra Model System"
}
Annotation {
Position [412, 32]
Text "xdot = Rx .* ( 1 - Ax) "
}
}
}
Block {
BlockType SubSystem
Name "clv2"
Ports [0, 1, 0, 0, 0]
Position [70, 131, 110, 189]
ShowPortLabels on
MaskType "Competitive Lotka Volterra System"
MaskDescription " This autonomous system represents the competit"
"ive lotka volterra system\n xdot = Rx .* ( 1 - Ax)\n where each component of"
" x represents a population, \n A is an interaction matrix, and R is a diagona"
"l \"growth rate\" matrix.\n Parameters and initial state can be selected from"
" the mask.\n"
MaskHelp " This autonomous system represents the competit"
"ive lotka volterra system\n <p>\n The system equations are: \n xdot = Rx .* "
"( 1 - Ax)\n where each component of x represents a population, \n A is an int"
"eraction matrix, and R is a diagonal \"growth rate\" matrix.\n Parameters and"
" initial state can be selected from the mask.\n"
MaskPromptString "A|R|Initial Condition"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskVariables "A=@1;R=@2;x0=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[1 1.09 1.52 0; 0 1 0.44 1.36; 2.33 0 1 1.47; 1"
".21 0.51 0.35 1]|diag([1 0.72 1.53 1.27])|[0.2 0.2 0.2 0.2]"
System {
Name "clv2"
Location [444, 276, 995, 491]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Constant
Name "Constant"
Position [15, 144, 105, 166]
Value "ones(size(A,2),1)"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [410, 134, 440, 156]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "x0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType SubSystem
Name "Matrix Gain A"
Ports [1, 1, 0, 0, 0]
Position [175, 70, 205, 100]
Orientation "left"
ShowPortLabels on
MaskType "Matrix Gain"
MaskDescription "Matrix Gain."
MaskHelp "Multiplies input vector by entered matrix t"
"o produce output vector (y=Au)."
MaskPromptString "Gain matrix:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskVariables "K=@1;"
MaskDisplay "disp('A')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "A"
System {
Name "Matrix Gain A"
Location [162, 233, 402, 326]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType StateSpace
Name "State\nSpace"
Position [80, 23, 145, 57]
ShowName off
A "[]"
B "[]"
C "[]"
D "K"
X0 "0"
}
Block {
BlockType Outport
Name "Out1"
Position [170, 33, 200, 47]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "State\nSpace"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "State\nSpace"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Matrix Gain R"
Ports [1, 1, 0, 0, 0]
Position [340, 130, 370, 160]
ShowPortLabels on
MaskType "Matrix Gain"
MaskDescription "Matrix Gain."
MaskHelp "Multiplies input vector by entered matrix t"
"o produce output vector (y=Au)."
MaskPromptString "Gain matrix:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskVariables "K=@1;"
MaskDisplay "disp('R')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "R"
System {
Name "Matrix Gain R"
Location [162, 233, 402, 326]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType StateSpace
Name "State\nSpace"
Position [80, 23, 145, 57]
ShowName off
A "[]"
B "[]"
C "[]"
D "K"
X0 "0"
}
Block {
BlockType Outport
Name "Out1"
Position [170, 33, 200, 47]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "State\nSpace"
DstPort 1
}
Line {
SrcBlock "State\nSpace"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [275, 119, 300, 166]
ShowName off
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [130, 145, 150, 165]
ShowName off
IconShape "round"
Inputs "-+|"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "x"
Position [490, 138, 520, 152]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -