📄 nn.mdl
字号:
SrcBlock "one"
SrcPort 1
Points [55, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Reciprocal"
DstPort 1
}
Line {
SrcBlock "Reciprocal"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [25, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "one1"
SrcPort 1
Points [30, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "a"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "a{1}"
Position [360, 60, 380, 80]
BackgroundColor "magenta"
InitialOutput "[0;0;0;0;0;0;0;0;0;0]"
}
Line {
SrcBlock "p{1}"
SrcPort 1
DstBlock "Delays 1"
DstPort 1
}
Line {
SrcBlock "Delays 1"
SrcPort 1
DstBlock "IW{1,1}"
DstPort 1
}
Line {
SrcBlock "IW{1,1}"
SrcPort 1
DstBlock "netsum"
DstPort 1
}
Line {
SrcBlock "b{1}"
SrcPort 1
DstBlock "netsum"
DstPort 2
}
Line {
SrcBlock "netsum"
SrcPort 1
DstBlock "tansig"
DstPort 1
}
Line {
SrcBlock "tansig"
SrcPort 1
DstBlock "a{1}"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Layer 2"
Ports [1, 1]
Position [350, 133, 445, 157]
BackgroundColor "lightBlue"
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
System {
Name "Layer 2"
Location [90, 253, 670, 546]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "a{1} "
Position [40, 40, 60, 60]
BackgroundColor "magenta"
PortDimensions "10"
}
Block {
BlockType SubSystem
Name "Delays 1"
Ports [1, 1]
Position [100, 40, 120, 60]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MaskDisplay "disp('TDL')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Delays 1"
Location [480, 93, 1060, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "p{2}"
Position [60, 40, 80, 60]
Orientation "down"
BackgroundColor "magenta"
NamePlacement "alternate"
PortDimensions "10"
}
Block {
BlockType Mux
Name "mux"
Ports [1, 1]
Position [200, 60, 240, 80]
BackgroundColor "lightBlue"
Inputs "1"
}
Block {
BlockType Outport
Name "pd{2,1}"
Position [300, 60, 320, 80]
BackgroundColor "magenta"
}
Line {
SrcBlock "p{2}"
SrcPort 1
DstBlock "mux"
DstPort 1
}
Line {
SrcBlock "mux"
SrcPort 1
DstBlock "pd{2,1}"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "LW{2,1}"
Ports [1, 1]
Position [160, 40, 200, 60]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MaskDisplay "disp('weight')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "LW{2,1}"
Location [142, 189, 722, 482]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "ad{2,1}"
Position [40, 60, 60, 80]
BackgroundColor "magenta"
PortDimensions "10"
}
Block {
BlockType Constant
Name "IW{2,1}(1,:)'"
Position [140, 40, 180, 60]
BackgroundColor "lightBlue"
Value "[-0.1422673802850449;0.104620087559"
"12219;-0.12497002619860312;0.088274917160426514;-0.044698402409363722;0.03637"
"1522919696246;-0.087260665702067627;-0.13824054725460888;0.14978851700952778;"
"-0.070410462142980274]"
MaskDisplay "disp('weights')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [345, 50, 385, 70]
Inputs "1"
}
Block {
BlockType Reference
Name "dotprod1"
Ports [2, 1]
Position [240, 40, 260, 80]
BackgroundColor "lightBlue"
SourceBlock "neural/Weight Functions/dotprod"
SourceType "Unknown"
}
Block {
BlockType Outport
Name "lz{2,1}"
Position [420, 50, 440, 70]
BackgroundColor "magenta"
}
Line {
SrcBlock "IW{2,1}(1,:)'"
SrcPort 1
DstBlock "dotprod1"
DstPort 1
}
Line {
SrcBlock "ad{2,1}"
SrcPort 1
DstBlock "dotprod1"
DstPort 2
}
Line {
SrcBlock "dotprod1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "lz{2,1}"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "b{2}"
Position [160, 80, 200, 100]
BackgroundColor "lightBlue"
Value "0.0025041866636746068"
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"
}
Block {
BlockType Outport
Name "a{2}"
Position [360, 60, 380, 80]
BackgroundColor "magenta"
InitialOutput "0"
}
Line {
SrcBlock "a{1} "
SrcPort 1
DstBlock "Delays 1"
DstPort 1
}
Line {
SrcBlock "Delays 1"
SrcPort 1
DstBlock "LW{2,1}"
DstPort 1
}
Line {
SrcBlock "LW{2,1}"
SrcPort 1
DstBlock "netsum"
DstPort 1
}
Line {
SrcBlock "b{2}"
SrcPort 1
DstBlock "netsum"
DstPort 2
}
Line {
SrcBlock "netsum"
SrcPort 1
DstBlock "purelin"
DstPort 1
}
Line {
SrcBlock "purelin"
SrcPort 1
DstBlock "a{2}"
DstPort 1
}
}
}
Block {
BlockType Goto
Name "a{1}"
Position [275, 75, 295, 95]
FontName "Arial"
FontSize 14
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 Outport
Name "y{1}"
Position [520, 135, 540, 155]
BackgroundColor "magenta"
FontName "Arial"
FontSize 14
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 "y{1}"
DstPort 1
}
}
}
Block {
BlockType Sin
Name "Sine Wave"
Position [60, 144, 110, 176]
FontName "Arial"
FontSize 14
SineType "Time based"
Amplitude "2"
SampleTime "0"
}
Block {
BlockType Scope
Name "y{1}"
Ports [1]
Position [415, 46, 460, 74]
FontName "Arial"
FontSize 14
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "Array"
}
Block {
BlockType Scope
Name "y{1}1"
Ports [1]
Position [410, 147, 455, 173]
FontName "Arial"
FontSize 14
Location [127, 366, 451, 605]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData1"
DataFormat "Array"
}
Block {
BlockType Scope
Name "y{1}2"
Ports [1]
Position [410, 211, 455, 239]
FontName "Arial"
FontSize 14
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData2"
DataFormat "Array"
}
Block {
BlockType Scope
Name "y{1}3"
Ports [1]
Position [540, 86, 585, 114]
FontName "Arial"
FontSize 14
Location [1, 56, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData3"
DataFormat "Array"
}
Line {
SrcBlock "Neural Network"
SrcPort 1
Points [30, 0]
Branch {
Points [30, 0]
DstBlock "y{1}"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Gaussian MF"
SrcPort 1
DstBlock "y{1}1"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [35, 0]
Branch {
Points [30, 0]
Branch {
DstBlock "Gaussian MF"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "y{1}2"
DstPort 1
}
}
Branch {
Points [0, -50]
Branch {
Points [0, -40]
DstBlock "Neural Network"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "y{1}3"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -