📄 ex362_nn.mdl
字号:
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 Product
Name "Product"
Ports [3, 1]
Position [230, 184, 250, 216]
Inputs "3"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [85, 227, 115, 258]
Operator ">"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [85, 342, 115, 373]
Operator ">"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator2"
Position [85, 402, 115, 433]
Operator "<"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [495, 34, 525, 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 "500000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Stop
Name "Stop Simulation"
Position [165, 227, 200, 263]
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [120, 31, 130, 64]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [280, 232, 300, 263]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [350, 82, 370, 113]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay\nTs=0.01"
Position [340, 125, 375, 145]
Orientation "left"
X0 "0"
SampleTime "0.01"
RTWStateStorageClass "Auto"
}
Block {
BlockType UnitDelay
Name "Unit Delay1\nTs=0.01"
Position [270, 275, 305, 295]
Orientation "left"
X0 "0"
SampleTime "0.01"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "Out2"
Position [265, 23, 295, 37]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out3"
Position [275, 143, 305, 157]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out4"
Position [170, 283, 200, 297]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out1"
Position [385, 193, 415, 207]
Port "4"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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, 125; -195, 0]
Branch {
Points [-150, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, -25]
DstBlock "Out3"
DstPort 1
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
Points [10, 0]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
DstBlock "Derivative"
DstPort 1
}
}
Branch {
Points [0, 105; -55, 0]
DstBlock "Gain4"
DstPort 1
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [15, 0]
Branch {
Points [10, 0; 0, 35]
DstBlock "Unit Delay\nTs=0.01"
DstPort 1
}
Branch {
Points [0, -25; -20, 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; 150, 0]
Branch {
Points [210, 0]
DstBlock "Mux1"
DstPort 1
}
Branch {
DstBlock "Out2"
DstPort 1
}
}
}
Line {
SrcBlock "Neural Network"
SrcPort 1
DstBlock "Gain1"
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
}
Line {
SrcBlock "Abs"
SrcPort 1
Points [-5, 0; 10, 0]
Branch {
Points [0, -5]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 35; -30, 0]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [10, 0; 0, 35]
DstBlock "Unit Delay1\nTs=0.01"
DstPort 1
}
Branch {
Points [0, -25; -45, 0]
DstBlock "Gain5"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay1\nTs=0.01"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [10, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 2
}
Branch {
DstBlock "Display1"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Stop Simulation"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Out4"
DstPort 1
}
}
Line {
SrcBlock "Gain4"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Gain5"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Out1"
DstPort 1
}
Branch {
Points [0, 20]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
Points [-285, 0]
DstBlock "Relational\nOperator"
DstPort 1
}
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Relational\nOperator2"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [20, 0]
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator2"
SrcPort 1
Points [20, 0]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [15, 0; 0, 40; 10, 0]
Branch {
Points [0, 60]
DstBlock "Relational\nOperator2"
DstPort 1
}
Branch {
DstBlock "Relational\nOperator1"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [25, 0]
DstBlock "Product"
DstPort 3
}
Annotation {
Position [56, 116]
Text "ex362_nn.m\nPenChen Chou\nJun. 21, 2001"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -