📄 lhw_d_stbc_g2.mdl
字号:
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation3"
Ports [2, 1]
Position [375, 104, 420, 186]
FontSize 10
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Math
Name "conj"
Ports [1, 1]
Position [150, 175, 180, 205]
Operator "conj"
}
Block {
BlockType Math
Name "conj1"
Ports [1, 1]
Position [150, 215, 180, 245]
Operator "conj"
}
Block {
BlockType SubSystem
Name "h1"
Ports [0, 1]
Position [25, 54, 45, 76]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "h1"
Location [189, 286, 669, 523]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "Complex\nExponential"
Ports [1, 1]
Position [150, 107, 200, 143]
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
ShowPortLabels "on"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [270, 62, 300, 93]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Rayleigh Noise\nGenerator"
Ports [0, 1]
Position [125, 28, 205, 72]
FontSize 10
SourceBlock "commnoisgen2/Rayleigh Noise\nGenerator"
SourceType "Rayleigh Noise Generator"
ShowPortLabels "on"
alpha "my_sigma"
seed "15761"
Ts "my_sample_time"
frameBased "off"
sampPerFrame "1"
orient "off"
}
Block {
BlockType Reference
Name "Uniform Noise\nGenerator"
Ports [0, 1]
Position [25, 103, 105, 147]
FontSize 10
SourceBlock "commnoisgen2/Uniform Noise\nGenerator"
SourceType "Uniform Noise Generator"
ShowPortLabels "on"
low "0"
up "2*pi"
seed "23813"
Ts "my_sample_time"
frameBased "off"
sampPerFrame "1"
orient "off"
}
Block {
BlockType Outport
Name "h1"
Position [325, 73, 355, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Uniform Noise\nGenerator"
SrcPort 1
DstBlock "Complex\nExponential"
DstPort 1
}
Line {
SrcBlock "Rayleigh Noise\nGenerator"
SrcPort 1
Points [20, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Complex\nExponential"
SrcPort 1
Points [25, 0; 0, -40]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "h1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "h2"
Ports [0, 1]
Position [25, 94, 45, 116]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "h2"
Location [189, 286, 669, 523]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "Complex\nExponential"
Ports [1, 1]
Position [150, 107, 200, 143]
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
ShowPortLabels "on"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [270, 62, 300, 93]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Rayleigh Noise\nGenerator"
Ports [0, 1]
Position [125, 28, 205, 72]
FontSize 10
SourceBlock "commnoisgen2/Rayleigh Noise\nGenerator"
SourceType "Rayleigh Noise Generator"
ShowPortLabels "on"
alpha "my_sigma"
seed "46567"
Ts "my_sample_time"
frameBased "off"
sampPerFrame "1"
orient "off"
}
Block {
BlockType Reference
Name "Uniform Noise\nGenerator"
Ports [0, 1]
Position [25, 103, 105, 147]
FontSize 10
SourceBlock "commnoisgen2/Uniform Noise\nGenerator"
SourceType "Uniform Noise Generator"
ShowPortLabels "on"
low "0"
up "2*pi"
seed "116719"
Ts "my_sample_time"
frameBased "off"
sampPerFrame "1"
orient "off"
}
Block {
BlockType Outport
Name "h2"
Position [325, 73, 355, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Uniform Noise\nGenerator"
SrcPort 1
DstBlock "Complex\nExponential"
DstPort 1
}
Line {
SrcBlock "Rayleigh Noise\nGenerator"
SrcPort 1
Points [20, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Complex\nExponential"
SrcPort 1
Points [25, 0; 0, -40]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "h2"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [475, 138, 505, 152]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "h1"
SrcPort 1
DstBlock "Copy"
DstPort 1
}
Line {
SrcBlock "h2"
SrcPort 1
DstBlock "Copy1"
DstPort 1
}
Line {
SrcBlock "Copy"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
Branch {
Points [0, 165]
DstBlock "conj1"
DstPort 1
}
}
Line {
SrcBlock "Copy1"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Branch {
Points [0, 85]
DstBlock "conj"
DstPort 1
}
}
Line {
SrcBlock "conj"
SrcPort 1
DstBlock "Matrix\nConcatenation2"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Matrix\nConcatenation2"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
Points [25, 0; 0, 40]
DstBlock "Matrix\nConcatenation3"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation2"
SrcPort 1
Points [25, 0; 0, -45]
DstBlock "Matrix\nConcatenation3"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "conj1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType "S-Function"
Name "D-STBC G2"
Ports [1, 2]
Position [170, 51, 230, 109]
BackgroundColor "lightBlue"
CopyFcn "set_param(gcbh,'LinkStatus','none')"
PreSaveFcn "try, set_param(gcb,'FunctionName','D_STBC_G2'),"
" end"
OpenFcn "sfunctionwizard(gcbh)"
FontSize 10
FunctionName "D_STBC_G2"
SFunctionModules "D_STBC_G2_wrapper "
WizardData "DataTag0"
MaskType "S-Function Builder"
MaskInitialization "val = [[.9 0.75 0.75 1 1 .9 .9 1]',[1 1 0.75 0"
".75 .9 .9 1 .9]'];try , sys = get_param(gcb,'SfunBuilderFcnName');if isempty("
"sys), sys = get_param(gcb,'FunctionName'); end,catch, sys = get_param(gcb,'Fu"
"nctionName'); end"
MaskDisplay "plot(val(:,1),val(:,2)),disp(sys)port_label('in"
"put',1,'x')port_label('output',1,'y1')port_label('output',2,'y2')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
}
Block {
BlockType "S-Function"
Name "D-STBC decoder"
Ports [2, 1]
Position [760, 101, 830, 159]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -