📄 add_4tr1.mdl
字号:
DstBlock "Matrix\nConcatenation11"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation9"
SrcPort 1
Points [0, -15; 5, 0]
Branch {
DstBlock "Matrix\nConcatenation12"
DstPort 1
}
Branch {
DstBlock "Unit Delay5"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay5"
SrcPort 1
Points [0, -10]
DstBlock "Matrix\nConcatenation12"
DstPort 2
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Frame Status\nConversion5"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation11"
SrcPort 1
Points [30, 0; 0, -300]
DstBlock "Matrix\nConcatenation6"
DstPort 3
}
Line {
SrcBlock "Matrix\nConcatenation12"
SrcPort 1
Points [35, 0; 0, -460]
DstBlock "Matrix\nConcatenation6"
DstPort 4
}
Line {
SrcBlock "MATLAB Fcn2"
SrcPort 1
Points [10, 0; 0, 85; -390, 0]
DstBlock "Matrix\nConcatenation6"
DstPort 5
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [2, 4]
Position [320, 36, 460, 259]
TreatAsAtomicUnit off
System {
Name "Subsystem2"
Location [3, 80, 1015, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 178, 55, 192]
}
Block {
BlockType Inport
Name "In2"
Position [505, 258, 535, 272]
Port "2"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [450, 359, 485, 391]
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
Value "1"
SampleMode "Discrete"
discreteOutput "Sample-based"
continuousOutput "Sample-based"
sampTime "8e-6"
framePeriod "2"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "-inf"
Ts "-inf"
FramebasedOutput "-inf"
}
Block {
BlockType Reference
Name "DSP\nConstant1"
Ports [0, 1]
Position [450, 414, 485, 446]
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
Value "1"
SampleMode "Discrete"
discreteOutput "Sample-based"
continuousOutput "Sample-based"
sampTime "8e-6"
framePeriod "2"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "-inf"
Ts "-inf"
FramebasedOutput "-inf"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 4]
Position [80, 43, 85, 407]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [805, 242, 840, 278]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [705, 240, 765, 270]
MATLABFcn "construct(u)"
OutputDimensions "[4,4]"
OutputSignalType "complex"
Output1D off
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [3, 1]
Position [630, 215, 670, 295]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [550, 140, 590, 195]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation3"
Ports [4, 1]
Position [540, 335, 580, 390]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "4"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix Multiply1"
Ports [2, 1]
Position [295, 236, 350, 274]
SourceBlock "dspmtrx3/Matrix Multiply"
SourceType "Matrix Multiply"
numInputPorts "2"
OptimizationLevel "None"
}
Block {
BlockType Reference
Name "Matrix Multiply7"
Ports [2, 1]
Position [355, 106, 410, 144]
SourceBlock "dspmtrx3/Matrix Multiply"
SourceType "Matrix Multiply"
numInputPorts "2"
OptimizationLevel "None"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Tag "S/P"
Description "S/P"
Ports [1, 4]
Position [855, 141, 885, 379]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1,2,3,4}"
idxErrMode "Clip Index"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [475, 66, 520, 99]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [415, 201, 460, 234]
InputSameDT off
}
Block {
BlockType Reference
Name "Reshape2"
Ports [1, 1]
Position [955, 158, 985, 182]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[2,2]"
}
Block {
BlockType Reference
Name "Reshape3"
Ports [1, 1]
Position [955, 218, 985, 242]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[2,2]"
}
Block {
BlockType Reference
Name "Reshape4"
Ports [1, 1]
Position [950, 278, 980, 302]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[2,2]"
}
Block {
BlockType Reference
Name "Reshape5"
Ports [1, 1]
Position [960, 338, 990, 362]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[2,2]"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [4, 2]
Position [175, 55, 215, 200]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [2, 80, 1014, 724]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 28, 55, 42]
}
Block {
BlockType Inport
Name "In2"
Position [20, 85, 50, 100]
Orientation "up"
Port "2"
}
Block {
BlockType Inport
Name "In3"
Position [20, 175, 50, 190]
Orientation "up"
Port "3"
}
Block {
BlockType Inport
Name "In4"
Position [25, 260, 55, 275]
Orientation "up"
Port "4"
}
Block {
BlockType Abs
Name "Abs"
Position [255, 245, 285, 275]
}
Block {
BlockType Abs
Name "Abs1"
Position [255, 320, 285, 350]
}
Block {
BlockType Gain
Name "Gain"
Position [345, 145, 375, 175]
Gain "-1"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [400, 145, 430, 175]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [400, 190, 430, 220]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction2"
Ports [1, 1]
Position [335, 245, 365, 275]
Operator "square"
}
Block {
BlockType Math
Name "Math\nFunction3"
Ports [1, 1]
Position [345, 320, 375, 350]
Operator "square"
}
Block {
BlockType Math
Name "Math\nFunction4"
Ports [1, 1]
Position [480, 275, 510, 305]
Operator "sqrt"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [385, 65, 425, 120]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [470, 160, 510, 215]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [565, 95, 605, 150]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Product
Name "Product"
Ports [1, 1]
Position [545, 273, 590, 307]
Inputs "/"
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [130, 70, 160, 100]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [135, 140, 165, 170]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [425, 275, 455, 305]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [530, 440, 590, 470]
VariableName "simout1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [640, 395, 700, 425]
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [235, 420, 295, 450]
VariableName "simout2"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [730, 175, 790, 205]
VariableName "simout5"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace5"
Position [775, 360, 835, 390]
VariableName "simout3"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [655, 270, 695, 310]
X0 "1"
SampleTime "-1"
}
Block {
BlockType Outport
Name "Out1"
Position [630, 118, 660, 132]
}
Block {
BlockType Outport
Name "Out2"
Position [795, 283, 825, 297]
Port "2"
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0]
Branch {
Points [35, 0; 0, -35; 110, 0; 0, -15]
Branch {
Points [0, 55]
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 2
}
}
Branch {
Points [0, 180; 20, 0]
Branch {
DstBlock "Abs1"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -