📄 simunet2.mdl
字号:
Ports [1, 1]
Position [200, 60, 240, 80]
BackgroundColor "lightBlue"
Inputs "1"
}
Block {
BlockType Outport
Name "pd{1,1}"
Position [300, 60, 320, 80]
BackgroundColor "magenta"
IconDisplay "Port number"
}
Line {
SrcBlock "p{1}"
SrcPort 1
DstBlock "mux"
DstPort 1
}
Line {
SrcBlock "mux"
SrcPort 1
DstBlock "pd{1,1}"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "IW{1,1}"
Ports [1, 1]
Position [160, 40, 200, 60]
BackgroundColor "lightBlue"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskDisplay "disp('weight')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "IW{1,1}"
Location [480, 91, 1016, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "pd{1,1}"
Position [40, 60, 60, 80]
BackgroundColor "magenta"
IconDisplay "Port number"
PortDimensions "2"
}
Block {
BlockType Constant
Name "IW{1,1}(1,:)'"
Position [140, 40, 180, 60]
BackgroundColor "lightBlue"
Value "[2;1]"
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 ""
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Outport
Name "iz{1,1}"
Position [420, 60, 440, 80]
BackgroundColor "magenta"
IconDisplay "Port number"
}
Line {
SrcBlock "IW{1,1}(1,:)'"
SrcPort 1
DstBlock "dotprod1"
DstPort 1
}
Line {
SrcBlock "pd{1,1}"
SrcPort 1
DstBlock "dotprod1"
DstPort 2
}
Line {
SrcBlock "dotprod1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "iz{1,1}"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "b{1}"
Position [160, 80, 200, 100]
BackgroundColor "lightBlue"
Value "-3"
MaskDisplay "disp('bias')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Reference
Name "hardlim"
Ports [1, 1]
Position [300, 60, 320, 80]
BackgroundColor "lightBlue"
SourceBlock "neural/Transfer Functions/hardlim"
SourceType "Hardlim"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Sum
Name "netsum"
Ports [2, 1]
Position [240, 60, 260, 80]
BackgroundColor "lightBlue"
Inputs "2"
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "a{1}"
Position [360, 60, 380, 80]
BackgroundColor "magenta"
IconDisplay "Port number"
InitialOutput "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 "hardlim"
DstPort 1
}
Line {
SrcBlock "hardlim"
SrcPort 1
DstBlock "a{1}"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Process Input 1"
Ports [1, 1]
Position [100, 40, 120, 60]
BackgroundColor "magenta"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Process Input 1"
Location [480, 91, 1016, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "x"
Position [40, 40, 60, 60]
BackgroundColor "magenta"
IconDisplay "Port number"
PortDimensions "2"
}
Block {
BlockType Outport
Name "p"
Position [120, 40, 160, 60]
BackgroundColor "magenta"
IconDisplay "Port number"
PortDimensions "2"
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "p"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Process Output 1"
Ports [1, 1]
Position [320, 80, 340, 100]
BackgroundColor "magenta"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Process Output 1"
Location [480, 91, 1016, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "a"
Position [40, 40, 60, 60]
BackgroundColor "magenta"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType Outport
Name "y"
Position [160, 40, 200, 60]
BackgroundColor "magenta"
IconDisplay "Port number"
PortDimensions "1"
}
Line {
SrcBlock "a"
SrcPort 1
DstBlock "y"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "y{1}"
Position [380, 80, 400, 100]
BackgroundColor "magenta"
IconDisplay "Port number"
InitialOutput "0"
}
Line {
SrcBlock "x{1}"
SrcPort 1
DstBlock "Process Input 1"
DstPort 1
}
Line {
SrcBlock "Process Output 1"
SrcPort 1
DstBlock "y{1}"
DstPort 1
}
Line {
SrcBlock "Process Input 1"
SrcPort 1
DstBlock "Layer 1"
DstPort 1
}
Line {
SrcBlock "Layer 1"
SrcPort 1
DstBlock "Process Output 1"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "x{1}"
Position [40, 40, 80, 60]
Value "[1;1]"
MaskDisplay "disp('Input 1 ')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Scope
Name "y{1}"
Ports [1]
Position [300, 40, 320, 60]
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "Array"
}
Line {
SrcBlock "x{1}"
SrcPort 1
DstBlock "Neural Network"
DstPort 1
}
Line {
SrcBlock "Neural Network"
SrcPort 1
DstBlock "y{1}"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -