📄 ds_ss_rake.mdl
字号:
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType From
Name "From16"
Position [390, 32, 430, 48]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "RxSig1"
}
Block {
BlockType From
Name "From17"
Position [390, 57, 430, 73]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "SC"
}
Block {
BlockType From
Name "From18"
Position [155, 252, 240, 268]
Orientation "left"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "BER_MRC"
}
Block {
BlockType From
Name "From28"
Position [390, 82, 450, 98]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "NoiseVect"
}
Block {
BlockType From
Name "From4"
Position [390, 107, 455, 123]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "w_MRC1"
}
Block {
BlockType From
Name "From40"
Position [885, 122, 970, 138]
Orientation "left"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "BER_MRC"
}
Block {
BlockType From
Name "From6"
Position [705, 47, 755, 63]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "TxData"
}
Block {
BlockType Goto
Name "Goto11"
Position [105, 121, 175, 139]
ShowName off
GotoTag "NoiseVect"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto2"
Position [310, 48, 365, 62]
ShowName off
GotoTag "w_MRC1"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto5"
Position [320, 22, 365, 38]
ShowName off
GotoTag "RxSig1"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto6"
Position [885, 62, 960, 78]
ShowName off
GotoTag "BER_MRC"
TagVisibility "local"
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [475, 102, 530, 128]
ShowName off
SourceBlock "dspbdsp2/Integer Delay"
SourceType "Integer Delay"
delay "Drake"
ic "0"
frame off
df on
numChans "1"
}
Block {
BlockType Math
Name "Math\nFunction16"
Ports [1, 1]
Position [475, 54, 495, 76]
ShowName off
Operator "conj"
OutputSignalType "auto"
}
Block {
BlockType SubSystem
Name "Multipath Channel"
Ports [1, 2]
Position [110, 16, 195, 69]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Multipath Channel (Jakes model)"
MaskPromptString "Profile|Delay :|Number of generator :|Seed :|Do"
"ppler frequency (Hz) :|Sample time :"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVariables "P=@1;D=@2;No=@3;seed=@4;fd=@5;Ts=@6;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "PathProfile|PathDelay|length(PathProfile)|1:len"
"gth(PathProfile)|fd|Tc"
MaskVariableAliases ",,,,,"
System {
Name "Multipath Channel"
Location [365, 491, 835, 688]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 28, 55, 42]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [70, 65, 130, 85]
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "ones(length(D),1)"
InterpretAs1D off
SampleMode "Discrete"
Ts "Ts"
FramebasedOutput off
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [230, 27, 275, 63]
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "D"
ic "0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [155, 26, 200, 59]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [305, 36, 350, 69]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "Rayleigh Fading"
Ports [0, 1]
Position [25, 98, 80, 142]
AncestorBlock "umts_blks/Multipath Channel/Rayleigh Fading"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Complex Rayleigh Fading Generator (Jakes mo"
"del)"
MaskPromptString "Power :|Seed :|Number of generators :|Doppl"
"er frequency :|Sample time :"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVariables "P=@1;N=@2;No=@3;fd=@4;Ts=@5;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "P|seed|No|fd|Ts"
MaskVariableAliases ",,,,"
System {
Name "Rayleigh Fading"
Location [146, 505, 476, 660]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "Rayliegh Fading"
Ports [0, 2]
Position [25, 27, 100, 58]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Complex Fading Channel Simulator"
MaskDescription "Using multiple (No+1) sinusoidal genera"
"tors to approximate a complex Gaussian random process with Doppler spectrum s"
"hape. This mobel can be used to generate upto No independent Gaussian process"
"es for simulating a multipath fading channel."
MaskPromptString "Path Nummber (<= No) :|Sample Time :|Qu"
"adrature phase Power :|In-phase Power :|Number of Generators (No) :|Doppler F"
"requency (rad/sec) :"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVariables "N=@1;Ts=@2;Pq=@3;Pi=@4;No=@5;Wd=@6;"
MaskInitialization "x=[];\nfor n=1:length(N);x=[x; pi/2+((2"
"*pi*(N(n)-1)*(1:No)./(No+1))+(pi*(1:No)./(No+1)))];end\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "N|Ts|0.5*P|0.5*P|No|2*pi*fd"
MaskVariableAliases ",,,,,"
System {
Name "Rayliegh Fading"
Location [96, 94, 781, 385]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Sin
Name "Cosine1"
Position [15, 95, 45, 125]
SineType "Time-based"
Amplitude "1"
Bias "0"
Frequency "ones(length(N),1)*Wd*cos( (2*pi*(1:"
"No)) ./ (2*(2*No+1)) )"
Phase "x"
Samples "10"
Offset "0"
SampleTime "Ts"
VectorParams1D off
}
Block {
BlockType Sin
Name "Cosine2"
Position [90, 95, 120, 125]
SineType "Time-based"
Amplitude "0.7071"
Bias "0"
Frequency "ones(length(N),1)*Wd"
Phase "pi/2"
Samples "10"
Offset "0"
SampleTime "Ts"
VectorParams1D off
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [200, 210, 295, 230]
ShowName off
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "ones(No+1,1)"
InterpretAs1D off
SampleMode "Discrete"
Ts "Ts"
FramebasedOutput off
}
Block {
BlockType Gain
Name "Gain"
Position [460, 65, 490, 95]
Gain "sqrt(Pi(:)/No)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [105, 30, 135, 60]
Gain "ones(length(N),1)*2*cos((pi*(1:No))"
"./(No+1))"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain2"
Position [105, 165, 135, 195]
Gain "ones(length(N),1)*2*sin((pi*(1:No))"
"./(No+1))"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain3"
Position [160, 65, 190, 95]
Gain "2*cos(0)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain4"
Position [160, 125, 190, 155]
Gain "2*sin(0)"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain5"
Position [460, 145, 490, 175]
Gain "sqrt(Pq(:)/(No+1))"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [220, 49, 275, 91]
SourceBlock "simulink3/Signals\n& Systems/Matrix"
"\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [220, 129, 275, 171]
SourceBlock "simulink3/Signals\n& Systems/Matrix"
"\nConcatenation"
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]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Q Ch"
Position [530, 150, 550, 170]
Port "2"
OutputWhenDisabled "held"
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]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -