📄 neurul_pendulum.mdl
字号:
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "p{3}"
Position [60, 40, 80, 60]
Orientation "down"
BackgroundColor "magenta"
NamePlacement "alternate"
Port "1"
IconDisplay "Port number"
PortDimensions "16"
LatchInput off
}
Block {
BlockType Mux
Name "mux"
Ports [1, 1]
Position [200, 60, 240, 80]
BackgroundColor "lightBlue"
Inputs "1"
}
Block {
BlockType Outport
Name "pd{3,2}"
Position [300, 60, 320, 80]
BackgroundColor "magenta"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "p{3}"
SrcPort 1
DstBlock "mux"
DstPort 1
}
Line {
SrcBlock "mux"
SrcPort 1
DstBlock "pd{3,2}"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "LW{3,2}"
Ports [1, 1]
Position [160, 40, 200, 60]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('weight')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "LW{3,2}"
Location [480, 85, 1060, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "ad{3,2}"
Position [40, 60, 60, 80]
BackgroundColor "magenta"
Port "1"
IconDisplay "Port number"
PortDimensions "16"
LatchInput off
}
Block {
BlockType Constant
Name "IW{3,2}(1,:)'"
Position [140, 40, 180, 60]
BackgroundColor "lightBlue"
Value "[2.0301766992402528;0.6217598659162"
"874;-0.65070966748281656;0.46123582790403544;-0.081085437133411764;1.70911453"
"99286709;0.38576936378297305;3.5398551155152091;-3.7361200586899979;-0.834965"
"46443479924;-0.21908121353477569;-0.43702307099888449;1.0572915556619551;0.42"
"017726802177785;1.1766978347694914;0.54925100200503763]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [340, 60, 380, 80]
Inputs "1"
}
Block {
BlockType Reference
Name "dotprod1"
Ports [2, 1]
Position [240, 40, 260, 80]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType "Unknown"
ShowPortLabels "on"
}
Block {
BlockType Outport
Name "lz{3,2}"
Position [420, 60, 440, 80]
BackgroundColor "magenta"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "IW{3,2}(1,:)'"
SrcPort 1
DstBlock "dotprod1"
DstPort 1
}
Line {
SrcBlock "ad{3,2}"
SrcPort 1
DstBlock "dotprod1"
DstPort 2
}
Line {
SrcBlock "dotprod1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "lz{3,2}"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "b{3}"
Position [160, 80, 200, 100]
BackgroundColor "lightBlue"
Value "0.63672787567681033"
MaskDisplay "disp('bias')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Sum
Name "netsum"
Ports [2, 1]
Position [240, 60, 260, 80]
BackgroundColor "lightBlue"
Inputs "2"
}
Block {
BlockType Reference
Name "purelin"
Ports [1, 1]
Position [300, 60, 320, 80]
BackgroundColor "lightBlue"
SourceBlock "neural/Transfer Functions/purelin"
SourceType "Unknown"
ShowPortLabels "on"
}
Block {
BlockType Outport
Name "a{3}"
Position [360, 60, 380, 80]
BackgroundColor "magenta"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "a{2} "
SrcPort 1
DstBlock "Delays 1"
DstPort 1
}
Line {
SrcBlock "Delays 1"
SrcPort 1
DstBlock "LW{3,2}"
DstPort 1
}
Line {
SrcBlock "LW{3,2}"
SrcPort 1
DstBlock "netsum"
DstPort 1
}
Line {
SrcBlock "b{3}"
SrcPort 1
DstBlock "netsum"
DstPort 2
}
Line {
SrcBlock "netsum"
SrcPort 1
DstBlock "purelin"
DstPort 1
}
Line {
SrcBlock "purelin"
SrcPort 1
DstBlock "a{3}"
DstPort 1
}
}
}
Block {
BlockType Goto
Name "a{1}"
Position [380, 40, 400, 60]
DialogController "Simulink.DDGSource"
GotoTag "feedback1"
TagVisibility "local"
MaskDisplay "plot(cos(0:.1:2*pi),sin(0:.1:2*pi))"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Goto
Name "a{2}"
Position [380, 95, 400, 115]
DialogController "Simulink.DDGSource"
GotoTag "feedback2"
TagVisibility "local"
MaskDisplay "plot(cos(0:.1:2*pi),sin(0:.1:2*pi))"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Outport
Name "y{1}"
Position [380, 160, 400, 180]
BackgroundColor "[1.000000, 0.000000, 1.000000]"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "p{1}"
SrcPort 1
DstBlock "Layer 1"
DstPort 1
}
Line {
SrcBlock "Layer 1"
SrcPort 1
DstBlock "a{1}"
DstPort 1
}
Line {
SrcBlock " a{1} "
SrcPort 1
DstBlock "Layer 2"
DstPort 1
}
Line {
SrcBlock "Layer 2"
SrcPort 1
DstBlock "a{2}"
DstPort 1
}
Line {
SrcBlock " a{2} "
SrcPort 1
DstBlock "Layer 3"
DstPort 1
}
Line {
SrcBlock "Layer 3"
SrcPort 1
DstBlock "y{1}"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "a"
Ports [1]
Position [640, 237, 665, 263]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "a'"
Ports [1]
Position [645, 277, 670, 303]
Location [5, 56, 1445, 873]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "pendulum"
Ports [1, 4]
Position [435, 170, 495, 275]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "pendulum"
MaskDescription "Inverted Pendulum"
MaskPromptString "Initial Conditions(cart position,cart velocity,"
"angle and angular velocity);"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Init_cond=@1;"
MaskInitialization "\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[0, 0, 0.1, 0]"
System {
Name "pendulum"
Location [2, 82, 1430, 853]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "F"
Position [20, 278, 50, 292]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [655, 490, 715, 520]
Expr "1/u"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [980, 270, 1010, 300]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [1020, 485, 1050, 515]
InitialCondition "0.1"
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator3"
Ports [1, 1]
Position [1110, 485, 1140, 515]
InitialCondition "Init_cond(3)"
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator4"
Ports [1, 1]
Position [900, 269, 930, 301]
IgnoreLimit off
}
Block {
BlockType Constant
Name "M"
Position [70, 700, 100, 730]
Value "1.096"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [200, 431, 245, 464]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [200, 521, 245, 554]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product10"
Ports [2, 1]
Position [810, 266, 855, 299]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product11"
Ports [2, 1]
Position [545, 571, 590, 604]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product12"
Ports [2, 1]
Position [800, 486, 845, 519]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product13"
Ports [2, 1]
Position [945, 481, 990, 514]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product14"
Ports [2, 1]
Position [115, 316, 160, 349]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [285, 486, 330, 519]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [440, 426, 485, 459]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product4"
Ports [3, 1]
Position [300, 318, 345, 352]
Inputs "3"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product5"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -