📄 myneural5.mdl
字号:
Position [410, 103, 440, 137]
NamePlacement "alternate"
Floating off
Location [633, 183, 957, 422]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "1"
SaveName "ScopeData10"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "XBAR"
Ports [1]
Position [410, 294, 440, 326]
NamePlacement "alternate"
Floating off
Location [633, 183, 957, 422]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData9"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "adaptive \ncontroller"
Ports [1, 1]
Position [75, 309, 140, 351]
Orientation "left"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
Port {
PortNumber 1
Name "u1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "adaptive \ncontroller"
Location [404, 365, 906, 718]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 103, 140, 117]
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain"
Position [240, 95, 270, 125]
Gain "100"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [360, 103, 390, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "ang1& ang2"
Ports [2, 1]
Position [545, 187, 575, 223]
Inputs "2"
}
Block {
BlockType StateSpace
Name "doublepend system"
Position [90, 238, 150, 272]
A "[0 0 0 1.0000 0 0 ;0 0 0 0 1.0000 0 ;0 0 0 0 0"
" 1.0000;
\n0 -1.5352 0.0487 -10.1733 0.0066 -0.0034 ;0 38.3769 -13.8131"
" 22.1408 -0.2412 0.1629
;0 -41.4394 39.1031 -2.1059 0.4085 -0.3240]"
B "[0;0;0;0.9597; -2.0888; 0.1987]"
C "[1 0 0 0 0 0;0 1 0 0 0 0;0 0 1 0 0 0; 0 0 0 1 0"
" 0;0 0 0 0 1 0;0 0 0 0 0 1 ]"
D "[0;0;0;0;0;0]"
X0 "[0 0.1 0 0 0 0]"
Port {
PortNumber 1
Name "x"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType SubSystem
Name "flash"
Ports [1]
Position [605, 187, 640, 223]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "flash"
Location [0, 88, 1012, 738]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [45, 40, 75, 50]
ShowName off
IconDisplay "Port number and signal name"
Port {
PortNumber 1
Name "ang1&ang2"
PropagatedSignals "ang1, ang2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType "S-Function"
Name "Animation function"
Ports [1]
Position [315, 25, 385, 65]
DeleteFcn "if ~isempty(findobj('type','figure','name',"
"'simppend Animation'));close('simppend Animation'); end;"
FunctionName "mypndanim2"
Parameters "0.05"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [205, 109, 235, 141]
Floating off
Location [188, 390, 835, 629]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Line {
Name "ang1&ang2"
Labels [0, 0]
SrcBlock "In1"
SrcPort 1
Points [90, 0]
Branch {
Points [0, 80]
DstBlock "Scope"
DstPort 1
}
Branch {
Labels [1, 0]
DstBlock "Animation function"
DstPort 1
}
}
}
}
Block {
BlockType "S-Function"
Name "neural controller"
Ports [1, 1]
Position [275, 315, 335, 345]
Orientation "left"
NamePlacement "alternate"
FunctionName "myneuro7"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Scope
Name "output"
Ports [1]
Position [235, 104, 265, 136]
NamePlacement "alternate"
Floating off
Location [173, 186, 701, 487]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData11"
DataFormat "StructureWithTime"
SampleTime "0"
}
Line {
Name "u1"
SrcBlock "adaptive \ncontroller"
SrcPort 1
Points [10, 10]
Branch {
Points [0, 90]
DstBlock "U"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "doublepend system"
DstPort 1
}
}
Line {
SrcBlock "neural controller"
SrcPort 1
Points [0, 0; -25, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "U2"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0; -5, 0]
Branch {
DstBlock "adaptive \ncontroller"
DstPort 1
}
Branch {
DstBlock "U1"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "X"
DstPort 1
}
Branch {
Points [65, 0]
DstBlock "Gain1"
DstPort 1
}
}
Line {
Name "ang1"
SrcBlock "Demux"
SrcPort 2
Points [125, 0; 0, -15]
Branch {
Labels [1, 0]
DstBlock "ANG1"
DstPort 1
}
Branch {
Points [85, 0]
DstBlock "ang1& ang2"
DstPort 1
}
}
Line {
Name "ang2"
SrcBlock "Demux"
SrcPort 3
Points [175, 0; 0, -5]
Branch {
Labels [1, 1]
DstBlock "ANG2"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "ang1& ang2"
DstPort 2
}
}
Line {
Name "xbar"
Labels [2, 0]
SrcBlock "Demux"
SrcPort 4
Points [75, 0]
DstBlock "XBAR"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 5
Points [125, 0]
DstBlock "ANG1BAR"
DstPort 1
}
Line {
Name "ang2bar\n\n"
Labels [2, 1]
SrcBlock "Demux"
SrcPort 6
Points [175, 0]
DstBlock "ANG2BAR"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "X1"
DstPort 1
}
Line {
Name "x"
Labels [0, 0]
SrcBlock "doublepend system"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [0, -135]
DstBlock "output"
DstPort 1
}
Branch {
Points [40, 0]
Branch {
Points [0, -35]
DstBlock "Demux"
DstPort 1
}
Branch {
Points [100, 0]
DstBlock "neural controller"
DstPort 1
}
}
}
Line {
Labels [2, 0]
SrcBlock "ang1& ang2"
SrcPort 1
Points [0, 0]
DstBlock "flash"
DstPort 1
}
Annotation {
Name "x"
Position [341, 172]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "x"
Position [381, 137]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Double Pendulum System\n(Double click on the \""
"?\" for more info)"
Position [112, 32]
UseDisplayTextAsClickCallback off
}
Annotation {
Name " Wang Qiyuan\nBJUT\nIAIR\nRuan Xiaogang"
Position [697, 77]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -