📄 rake.mdl
字号:
Ports [2, 1]
Position [220, 49, 275, 91]
SourceBlock "simulink/Math\nOperations/Matrix\nC"
"oncatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [220, 129, 275, 171]
SourceBlock "simulink/Math\nOperations/Matrix\nC"
"oncatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix Multiply"
Ports [2, 1]
Position [355, 61, 410, 99]
SourceBlock "dspmtrx3/Matrix Multiply"
SourceType "Matrix Multiply"
numInputPorts "2"
OptimizationLevel "None"
}
Block {
BlockType Reference
Name "Matrix Multiply1"
Ports [2, 1]
Position [355, 141, 410, 179]
SourceBlock "dspmtrx3/Matrix Multiply"
SourceType "Matrix Multiply"
numInputPorts "2"
OptimizationLevel "None"
}
Block {
BlockType Outport
Name "I Ch"
Position [530, 70, 550, 90]
InitialOutput "0"
}
Block {
BlockType Outport
Name "Q Ch"
Position [530, 150, 550, 170]
Port "2"
InitialOutput "0"
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
Points [25, 0; 0, -50]
Branch {
DstBlock "Matrix Multiply1"
DstPort 2
}
Branch {
Points [0, -80]
DstBlock "Matrix Multiply"
DstPort 2
}
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
DstBlock "Matrix Multiply1"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Matrix Multiply"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [65, 0]
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [65, 0]
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Gain4"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
Line {
SrcBlock "Cosine1"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -65]
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Cosine2"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -30]
DstBlock "Gain3"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Gain4"
DstPort 1
}
}
Line {
SrcBlock "Gain5"
SrcPort 1
DstBlock "Q Ch"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "I Ch"
DstPort 1
}
Line {
SrcBlock "Matrix Multiply"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Matrix Multiply1"
SrcPort 1
DstBlock "Gain5"
DstPort 1
}
}
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [140, 28, 170, 57]
Input "Real and imag"
}
Block {
BlockType Outport
Name "Out1"
Position [215, 38, 245, 52]
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Rayliegh Fading"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Rayliegh Fading"
SrcPort 2
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [1, 1]
Position [370, 45, 390, 65]
ShowName off
Inputs "+"
}
Block {
BlockType Outport
Name "Out1"
Position [415, 48, 445, 62]
}
Block {
BlockType Outport
Name "CIR"
Position [415, 113, 445, 127]
Port "2"
}
Line {
SrcBlock "Rayleigh Fading"
SrcPort 1
Points [205, 0]
Branch {
DstBlock "CIR"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
Points [0, -25]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Integer Delay1"
DstPort 1
}
Line {
SrcBlock "Integer Delay1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "SMF"
Ports [1, 1]
Position [225, 42, 285, 68]
TreatAsAtomicUnit off
MaskType "Symbol-matched filter for DS-SS"
MaskPromptString "Symbol time :|Chip time :"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Tb=@1;Tc=@2;"
MaskDisplay "disp('Symbol-Matched\\nFilter')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Tb|Tc"
System {
Name "SMF"
Location [63, 705, 550, 882]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "*In"
Position [15, 88, 45, 102]
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [125, 78, 155, 107]
ShowName off
Output "Real and imag"
}
Block {
BlockType Gain
Name "Gain"
Position [70, 80, 100, 110]
ShowName off
Gain "1/Tb"
}
Block {
BlockType Reference
Name "Integrate and Dump"
Ports [1, 1]
Position [180, 48, 260, 92]
ShowName off
SourceBlock "comminteg2/Integrate and Dump"
SourceType "Integrate and Dump"
limit "inf"
td "Tb"
ts "Tc"
}
Block {
BlockType Reference
Name "Integrate and Dump1"
Ports [1, 1]
Position [180, 98, 260, 142]
ShowName off
SourceBlock "comminteg2/Integrate and Dump"
SourceType "Integrate and Dump"
limit "inf"
td "Tb"
ts "Tc"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [350, 78, 380, 107]
ShowName off
Input "Real and imag"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [290, 55, 320, 85]
ShowName off
SampleTime "Tb"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [290, 105, 320, 135]
ShowName off
SampleTime "Tb"
}
Block {
BlockType Outport
Name "*Out"
Position [415, 88, 445, 102]
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [5, 0]
DstBlock "Integrate and Dump1"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "*Out"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
Points [10, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [10, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Integrate and Dump1"
SrcPort 1
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [5, 0]
DstBlock "Integrate and Dump"
DstPort 1
}
Line {
SrcBlock "Integrate and Dump"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "*In"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Stop Control"
Ports [1]
Position [15, 189, 120, 231]
Orientation "left"
NamePlacement "alternate"
TreatAsAtomicUnit off
MaskType "Stop Control for BER Simulations"
MaskPromptString "Maximum number of samples :|Minimum number of e"
"rrors :|Minimum number of samples :|Sample time (Tsam) :"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "MaxSamples=@1;MinErrors=@2;MinSamples=@3;Tsam=@"
"4;"
MaskDisplay "disp(['Simulation Stop\\nControl']);"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1e7|200|5e5|Tb/2"
System {
Name "Stop Control"
Location [384, 590, 923, 663]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 43, 60, 57]
}
Block {
BlockType Constant
Name "Constant"
Position [25, 83, 100, 107]
ShowName off
Value "MinSamples"
}
Block {
BlockType Constant
Name "Constant1"
Position [25, 113, 100, 137]
ShowName off
Value "MinErrors"
}
Block {
BlockType Constant
Name "Constant2"
Position [25, 143, 100, 167]
ShowName off
Value "MaxSamples"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [85, 31, 90, 69]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [440, 127, 470, 158]
ShowName off
Operator "OR"
}
Block {
BlockType Logic
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -