📄 add_4tr1.mdl
字号:
Fd "20"
simTs "2e-6"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "12345"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel5"
Ports [1, 1]
Position [195, 483, 275, 527]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
Fd "20"
simTs "2e-6"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "23456"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel6"
Ports [1, 1]
Position [195, 553, 275, 597]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
Fd "20"
simTs "2e-6"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "34567"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel7"
Ports [1, 1]
Position [195, 623, 275, 667]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
Fd "20"
simTs "2e-6"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "45678"
}
Block {
BlockType Sum
Name "Sum"
Ports [4, 1]
Position [315, 33, 360, 307]
ShowName off
Inputs "++++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [4, 1]
Position [345, 398, 390, 672]
ShowName off
Inputs "++++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [895, 168, 925, 182]
}
Block {
BlockType Outport
Name "Out2"
Position [1050, 583, 1080, 597]
Port "2"
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 5]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Multipath Rayleigh\nFading Channel"
DstPort 1
}
Branch {
Points [0, 365]
DstBlock "Multipath Rayleigh\nFading Channel4"
DstPort 1
}
}
Line {
SrcBlock "In4"
SrcPort 1
Points [75, 0]
Branch {
DstBlock "Multipath Rayleigh\nFading Channel3"
DstPort 1
}
Branch {
Points [0, 365]
DstBlock "Multipath Rayleigh\nFading Channel7"
DstPort 1
}
}
Line {
SrcBlock "In2"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Multipath Rayleigh\nFading Channel1"
DstPort 1
}
Branch {
Points [0, 365]
DstBlock "Multipath Rayleigh\nFading Channel5"
DstPort 1
}
}
Line {
SrcBlock "In3"
SrcPort 1
Points [55, 0]
Branch {
DstBlock "Multipath Rayleigh\nFading Channel2"
DstPort 1
}
Branch {
Points [0, 365]
DstBlock "Multipath Rayleigh\nFading Channel6"
DstPort 1
}
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel3"
SrcPort 1
Points [60, 0]
DstBlock "Sum"
DstPort 4
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel2"
SrcPort 1
Points [60, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel1"
SrcPort 1
Points [60, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel"
SrcPort 1
Points [65, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 15]
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel7"
SrcPort 1
Points [50, 0]
DstBlock "Sum1"
DstPort 4
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel6"
SrcPort 1
Points [50, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel5"
SrcPort 1
Points [50, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel4"
SrcPort 1
Points [55, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
Points [0, 40]
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [765, 24, 870, 266]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [-29, 67, 966, 711]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 133, 45, 147]
}
Block {
BlockType Inport
Name "In2"
Position [15, 538, 45, 552]
Port "2"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 4]
Position [160, 20, 170, 275]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 4]
Position [150, 425, 160, 680]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [825, 35, 865, 75]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion2"
Ports [1, 1]
Position [825, 310, 865, 350]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion3"
Ports [1, 1]
Position [80, 120, 120, 160]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Sample-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion4"
Ports [1, 1]
Position [995, 190, 1030, 230]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion5"
Ports [1, 1]
Position [75, 525, 115, 565]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Sample-based"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [635, 120, 695, 150]
MATLABFcn "demodulation(u)"
OutputSignalType "complex"
Output1D off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [635, 300, 695, 330]
MATLABFcn "demodulation2(u)"
OutputSignalType "complex"
Output1D off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn2"
Position [875, 425, 935, 455]
MATLABFcn "compute(u)"
OutputDimensions "[1,2]"
OutputSignalType "real"
Output1D off
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [365, 285, 405, 340]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation10"
Ports [2, 1]
Position [350, 510, 390, 565]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation11"
Ports [2, 1]
Position [475, 504, 510, 571]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation12"
Ports [2, 1]
Position [480, 689, 515, 756]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [360, 105, 400, 160]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation3"
Ports [2, 1]
Position [795, 404, 830, 471]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation4"
Ports [2, 1]
Position [485, 109, 520, 176]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation5"
Ports [2, 1]
Position [490, 284, 525, 351]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation6"
Ports [5, 1]
Position [575, 181, 610, 299]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "5"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation7"
Ports [2, 1]
Position [945, 180, 985, 235]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation8"
Ports [2, 1]
Position [725, 179, 760, 246]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation9"
Ports [2, 1]
Position [355, 690, 395, 745]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Tag "S/P"
Description "S/P"
Ports [1, 2]
Position [775, 166, 815, 259]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1,2}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "QPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [885, 31, 925, 69]
SourceBlock "commdigbbndpm2/QPSK\nDemodulator\nBaseband"
SourceType "QPSK Demodulator Baseband"
OutType "Bit"
Dec "Binary"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "QPSK\nDemodulator\nBaseband1"
Ports [1, 1]
Position [885, 310, 920, 350]
SourceBlock "commdigbbndpm2/QPSK\nDemodulator\nBaseband"
SourceType "QPSK Demodulator Baseband"
OutType "Bit"
Dec "Binary"
Ph "pi/8"
numSamp "1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [260, 105, 290, 135]
ShowName off
IconShape "round"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -