📄 mld_for_4_4_qam.mdl
字号:
Position [465, 325, 550, 405]
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation2"
Ports [2, 1]
Position [335, 197, 410, 248]
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType FrameConversion
Name "Frame Conversion1"
Ports [1, 1]
Position [145, 330, 185, 385]
Orientation "up"
NamePlacement "alternate"
}
Block {
BlockType FrameConversion
Name "Frame Conversion3"
Ports [1, 1]
Position [1055, 55, 1110, 95]
}
Block {
BlockType From
Name "From"
Position [1145, 526, 1185, 554]
Orientation "left"
CloseFcn "tagdialog Close"
GotoTag "H"
TagVisibility "global"
}
Block {
BlockType Gain
Name "Gain"
Position [255, 85, 285, 115]
Gain "sqrt(1/10)"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Goto
Name "Goto"
Position [960, 125, 1000, 155]
GotoTag "H"
TagVisibility "global"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Ports [1, 1]
Position [635, 450, 695, 480]
Orientation "left"
MATLABFcn "MIMOMLD"
OutputDimensions "16"
OutputSignalType "real"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenate"
Ports [2, 1]
Position [875, 444, 930, 486]
Orientation "left"
Mode "Multidimensional array"
}
Block {
BlockType Reference
Name "Rectangular QAM\nModulator\nBaseband"
Ports [1, 1]
Position [145, 74, 220, 126]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "commdigbbndam3/Rectangular QAM\nModulator\nBaseband"
SourceType "Rectangular QAM Modulator Baseband"
M "16"
InType "Bit"
Enc "Binary"
Mapping "[0:15]"
PowType "Min. distance between symbols"
MinDist "2"
AvgPow "1"
PeakPow "1"
Ph "0"
outDtype "double"
outWordLen "16"
outUDDataType "sfix(16)"
outFracLenMode "Best precision"
outFracLen "15"
}
Block {
BlockType Reshape
Name "Reshape"
Position [850, 123, 900, 157]
OutputDimensionality "Customize"
OutputDimensions "[4 4]"
}
Block {
BlockType Reshape
Name "Reshape1"
Position [1015, 523, 1065, 557]
Orientation "left"
OutputDimensionality "Customize"
OutputDimensions "[16 1]"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [360, 276, 400, 314]
Orientation "left"
InputPortWidth "3"
IndexOptions "Index vector (dialog)"
Indices "1"
OutputSizes "1"
}
Block {
BlockType Reference
Name "Submatrix"
Ports [1, 1]
Position [640, 55, 690, 95]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "All rows"
RowStartMode "First"
RowStartIndex "1"
RowEndMode "Last"
RowEndIndex "1"
ColSpan "Range of columns"
ColStartMode "Index"
ColStartIndex "1"
ColEndMode "Index"
ColEndIndex "4"
}
Block {
BlockType Reference
Name "Submatrix1"
Ports [1, 1]
Position [640, 120, 690, 160]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "All rows"
RowStartMode "First"
RowStartIndex "1"
RowEndMode "Last"
RowEndIndex "1"
ColSpan "Range of columns"
ColStartMode "Index"
ColStartIndex "5"
ColEndMode "Index"
ColEndIndex "20"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [335, 15, 395, 45]
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [280, 280, 340, 310]
Orientation "left"
NamePlacement "alternate"
VariableName "BER"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Transpose"
Ports [1, 1]
Position [845, 55, 900, 95]
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
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"
Hermitian off
overflowFlag off
}
Block {
BlockType Reference
Name "Transpose1"
Ports [1, 1]
Position [745, 445, 800, 485]
Orientation "left"
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
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"
Hermitian off
overflowFlag off
}
Block {
BlockType MATLABFcn
Name "channel"
Ports [1, 1]
Position [405, 85, 465, 115]
MATLABFcn "channel"
OutputDimensions "[1 20]"
Output1D off
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Rectangular QAM\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Error Rate\nCalculation2"
DstPort 1
}
}
Line {
SrcBlock "Rectangular QAM\nModulator\nBaseband"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "channel"
SrcPort 1
Points [155, 0]
Branch {
DstBlock "Submatrix"
DstPort 1
}
Branch {
DstBlock "Submatrix1"
DstPort 1
}
}
Line {
SrcBlock "Submatrix"
SrcPort 1
DstBlock "Transpose"
DstPort 1
}
Line {
SrcBlock "Submatrix1"
SrcPort 1
DstBlock "Reshape"
DstPort 1
}
Line {
SrcBlock "Transpose"
SrcPort 1
DstBlock "Frame Conversion3"
DstPort 1
}
Line {
SrcBlock "Reshape"
SrcPort 1
DstBlock "Goto"
DstPort 1
}
Line {
SrcBlock "Reshape1"
SrcPort 1
Points [-40, 0; 0, -65]
DstBlock "Matrix\nConcatenate"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "channel"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "Reshape1"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenate"
SrcPort 1
DstBlock "Transpose1"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation2"
SrcPort 1
Points [10, 0; 0, 70; -10, 0]
Branch {
Points [0, 70]
DstBlock "Display1"
DstPort 1
}
Branch {
DstBlock "Selector1"
DstPort 1
}
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 155]
DstBlock "Matrix\nConcatenate"
DstPort 1
}
Line {
SrcBlock "Frame Conversion3"
SrcPort 1
Points [100, 0]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Frame Conversion1"
SrcPort 1
Points [0, -90]
DstBlock "Error Rate\nCalculation2"
DstPort 2
}
Line {
SrcBlock "Transpose1"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
Points [-465, 0]
DstBlock "Frame Conversion1"
DstPort 1
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . < 8 ( 0 % \" $ ! 0 . 0 8 ( ! % \" $ - 0 0 #0 %)104U-;V1U;&%T;W( "
}
DataRecord {
Tag DataTag0
Data " %)30 . > 8 ( 0 % \" $ ! 0 . 2 8 ( ! % \" $ 2 0 0 $@ $)E<FYO=6QL:4)I;F%R>4=E;@ "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -