📄 ex361_nn.mdl
字号:
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 "LW{2,1}"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "ad{2,1}"
Position [40, 60, 60, 80]
BackgroundColor "magenta"
Port "1"
LatchInput off
PortDimensions "4"
SampleTime "0.01"
Interpolate on
}
Block {
BlockType Constant
Name "IW{2,1}(1,:)'"
Position [140, 40, 180, 60]
BackgroundColor "lightBlue"
Value "[-3.3049096580992337e-010;0.5192793"
"9322558048;-0.51927939326254391;8.9826404480414254e-012]"
VectorParams1D on
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"
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 Outport
Name "lz{2,1}"
Position [420, 60, 440, 80]
BackgroundColor "magenta"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "lz{2,1}"
DstPort 1
}
Line {
SrcBlock "dotprod1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "ad{2,1}"
SrcPort 1
DstBlock "dotprod1"
DstPort 2
}
Line {
SrcBlock "IW{2,1}(1,:)'"
SrcPort 1
DstBlock "dotprod1"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "b{2}"
Position [160, 80, 200, 100]
BackgroundColor "lightBlue"
Value "2.8846519109042279e-010"
VectorParams1D on
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"
IconShape "rectangular"
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "purelin"
Ports [1, 1]
Position [300, 60, 320, 80]
BackgroundColor "lightBlue"
SourceBlock "neural/Transfer Functions/purelin"
SourceType ""
}
Block {
BlockType Outport
Name "a{2}"
Position [360, 60, 380, 80]
BackgroundColor "magenta"
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "purelin"
SrcPort 1
DstBlock "a{2}"
DstPort 1
}
Line {
SrcBlock "netsum"
SrcPort 1
DstBlock "purelin"
DstPort 1
}
Line {
SrcBlock "b{2}"
SrcPort 1
DstBlock "netsum"
DstPort 2
}
Line {
SrcBlock "LW{2,1}"
SrcPort 1
DstBlock "netsum"
DstPort 1
}
Line {
SrcBlock "Delays 1"
SrcPort 1
DstBlock "LW{2,1}"
DstPort 1
}
Line {
SrcBlock "a{1} "
SrcPort 1
DstBlock "Delays 1"
DstPort 1
}
}
}
Block {
BlockType Goto
Name "a{1}"
Position [380, 40, 400, 60]
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 [380, 120, 400, 140]
BackgroundColor "magenta"
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Layer 2"
SrcPort 1
DstBlock "y{1}"
DstPort 1
}
Line {
SrcBlock " a{1} "
SrcPort 1
DstBlock "Layer 2"
DstPort 1
}
Line {
SrcBlock "Layer 1"
SrcPort 1
DstBlock "a{1}"
DstPort 1
}
Line {
SrcBlock "p{1}"
SrcPort 1
DstBlock "Layer 1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Plant"
Ports [1, 1]
Position [385, 32, 440, 68]
SourceBlock "cstblocks/LTI System"
SourceType "LTI Block"
sys "tf(2,[1 3 2])"
IC "[]"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [505, 34, 535, 66]
Floating off
Location [6, 59, 238, 214]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "150"
YMin "-1"
YMax "2"
SaveToWorkspace on
SaveName "Y"
DataFormat "Array"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [120, 32, 140, 63]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [355, 92, 375, 123]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay\nTs=0.01"
Position [345, 135, 380, 155]
Orientation "left"
X0 "0"
SampleTime "0.01"
RTWStateStorageClass "Auto"
}
Line {
SrcBlock "Band-Limited\nWhite Noise"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Plant"
SrcPort 1
Points [5, 0]
Branch {
Points [10, 0]
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 135; -345, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Derivative"
DstPort 1
}
Branch {
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [-5, 0; 30, 0]
Branch {
Points [0, 35]
DstBlock "Unit Delay\nTs=0.01"
DstPort 1
}
Branch {
Points [0, -35; -35, 0]
DstBlock "Plant"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay\nTs=0.01"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Neural Network"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -25; 360, 0]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Neural Network"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 35; -30, 0; 0, 30]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [10, 0]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Derivative"
SrcPort 1
Points [5, 0; 0, 35; -55, 0]
DstBlock "Gain3"
DstPort 1
}
Annotation {
Position [56, 136]
Text "ex361_nn.m\nPenChen Chou\nJun. 21, 2001"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -