📄 ex383.mdl
字号:
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Load initial data before simulation\\nDou"
"ble clicks on this ICON')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Double click\non this for demo.5"
Location [44, 351, 171, 504]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "Fuzzy Control Subsystem"
Ports [2, 1]
Position [220, 35, 285, 75]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Fuzzy Control Subsystem"
Location [313, 280, 739, 408]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "ek"
Position [50, 33, 80, 47]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "dek"
Position [35, 63, 65, 77]
Port "2"
Interpolate on
}
Block {
BlockType Reference
Name "Fuzzy Logic \nController"
Ports [1, 1]
Position [245, 35, 280, 75]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
fis "nn_flc"
}
Block {
BlockType Gain
Name "Gain"
Position [100, 23, 150, 57]
Gain "7.853"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [90, 60, 150, 90]
Gain "-0.595"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain2"
Position [295, 36, 360, 74]
Gain "0.002"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [220, 26, 225, 84]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Saturate
Name "Saturation"
Position [170, 25, 200, 45]
UpperLimit "0.95"
LowerLimit "-0.95"
LinearizeAsGain on
}
Block {
BlockType Saturate
Name "Saturation1"
Position [170, 60, 200, 80]
UpperLimit "0.95"
LowerLimit "-0.95"
LinearizeAsGain on
}
Block {
BlockType Outport
Name "duk"
Position [380, 48, 410, 62]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Saturation1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "ek"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "duk"
DstPort 1
}
Line {
SrcBlock "dek"
SrcPort 1
Points [5, 0]
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Saturation1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType Gain
Name "Gain"
Position [215, 195, 265, 225]
Gain "10"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [475, 31, 480, 69]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Neural Subsystem"
Ports [1, 1]
Position [120, 341, 175, 369]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Neural Subsystem"
Location [77, 122, 556, 291]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 43, 55, 57]
Port "1"
Interpolate on
}
Block {
BlockType Derivative
Name "Derivative"
Position [90, 110, 120, 140]
}
Block {
BlockType Gain
Name "Gain1"
Position [100, 24, 165, 56]
Gain "7.853"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain2"
Position [140, 108, 205, 142]
Gain "0.595"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain3"
Position [305, 33, 380, 67]
Gain "0.001"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [225, 31, 230, 69]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Neural Network"
Ports [1, 1]
Position [250, 29, 290, 71]
BackgroundColor "lightBlue"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Neural Network"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "p{1}"
Position [40, 40, 60, 60]
BackgroundColor "magenta"
Port "1"
PortDimensions "2"
SampleTime "0.01"
Interpolate on
}
Block {
BlockType From
Name " a{1} "
Position [40, 120, 60, 140]
GotoTag "feedback1"
MaskDisplay "plot(cos(0:.1:2*pi),sin(0:.1:2*pi))"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "Layer 1"
Ports [1, 1]
Position [190, 40, 250, 60]
BackgroundColor "lightBlue"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Layer 1"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "p{1}"
Position [40, 40, 60, 60]
BackgroundColor "magenta"
Port "1"
PortDimensions "2"
SampleTime "0.01"
Interpolate on
}
Block {
BlockType SubSystem
Name "Delays 1"
Ports [1, 1]
Position [100, 40, 120, 60]
BackgroundColor "lightBlue"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('TDL')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Delays 1"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "p{1}"
Position [60, 40, 80, 60]
Orientation "down"
BackgroundColor "magenta"
NamePlacement "alternate"
Port "1"
PortDimensions "2"
SampleTime "0.01"
Interpolate on
}
Block {
BlockType Mux
Name "mux"
Ports [1, 1]
Position [200, 60, 240, 80]
BackgroundColor "lightBlue"
Inputs "1"
DisplayOption "none"
}
Block {
BlockType Outport
Name "pd{1,1}"
Position [300, 60, 320, 80]
BackgroundColor "magenta"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "mux"
SrcPort 1
DstBlock "pd{1,1}"
DstPort 1
}
Line {
SrcBlock "p{1}"
SrcPort 1
DstBlock "mux"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "IW{1,1}"
Ports [1, 1]
Position [160, 40, 200, 60]
BackgroundColor "lightBlue"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('weight')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "IW{1,1}"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "pd{1,1}"
Position [40, 120, 60, 140]
BackgroundColor "magenta"
Port "1"
PortDimensions "2"
SampleTime "0.01"
Interpolate on
}
Block {
BlockType Constant
Name "IW{1,1}(1,:)'"
Position [140, 40, 180, 60]
BackgroundColor "lightBlue"
Value "[-1.6882088929089658;0.6194200377"
"6445831]"
VectorParams1D on
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(2,:)'"
Position [140, 100, 180, 120]
BackgroundColor "lightBlue"
Value "[1.95692801224708;1.9569280122405"
"412]"
VectorParams1D on
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Constant
Name "IW{1,1}(3,:)'"
Position [140, 160, 180, 180]
BackgroundColor "lightBlue"
Value "[-1.9569280118086527;-1.956928011"
"8054293]"
VectorParams1D on
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [340, 120, 380, 140]
Inputs "3"
DisplayOption "none"
}
Block {
BlockType Reference
Name "dotprod1"
Ports [2, 1]
Position [240, 40, 260, 80]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType ""
}
Block {
BlockType Reference
Name "dotprod2"
Ports [2, 1]
Position [240, 100, 260, 140]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType ""
}
Block {
BlockType Reference
Name "dotprod3"
Ports [2, 1]
Position [240, 160, 260, 200]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType ""
}
Block {
BlockType Outport
Name "iz{1,1}"
Position [420, 120, 440, 140]
BackgroundColor "magenta"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "iz{1,1}"
DstPort 1
}
Line {
SrcBlock "dotprod3"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -