msmodulation.mdl
来自「利用matlab/simulink仿真了CDMA2」· MDL 代码 · 共 2,250 行 · 第 1/5 页
MDL
2,250 行
Line {
SrcBlock "S-Function"
SrcPort 1
Points [15, 0; 0, -20]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, 5]
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter1"
SrcPort 1
Points [90, 0; 0, 15]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [30, 0; 0, 60]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter2"
SrcPort 1
Points [0, 0; 60, 0]
Branch {
Points [0, 25]
DstBlock "Unit Delay"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
Points [60, 0; 0, -5]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter2"
DstPort 1
}
Line {
SrcBlock "I branch PN"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [140, 122, 170, 218]
ShowName off
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [140, 258, 170, 322]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [440, 104, 470, 151]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [435, 259, 465, 306]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [895, 258, 925, 272]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Product"
SrcPort 1
Points [35, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In6"
SrcPort 1
Points [20, 0; 0, -50]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [15, 0; 0, 35]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "FIR\nInterpolation1"
SrcPort 1
Points [40, 0; 0, -55]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "FIR\nInterpolation"
SrcPort 1
Points [40, 0; 0, 65]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "FIR\nInterpolation1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "FIR\nInterpolation"
DstPort 1
}
Line {
SrcBlock "Product4"
SrcPort 1
Points [30, 0; 0, -15]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [70, 0]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [35, 0; 0, -95]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [35, 0; 0, 45]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 10; 80, 0]
Branch {
DstBlock "Product4"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Product3"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [45, 0; 0, -25; 50, 0]
Branch {
Points [0, -70]
DstBlock "Product1"
DstPort 2
}
Branch {
DstBlock "Product2"
DstPort 1
}
}
Line {
SrcBlock "Subsystem"
SrcPort 2
Points [125, 0; 0, 65]
Branch {
Points [0, 65]
DstBlock "Product3"
DstPort 1
}
Branch {
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [100, 0; 0, 20]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 255]
DstBlock "Product4"
DstPort 2
}
}
Line {
SrcBlock "SCH1/CCCH/EACH"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "FCH"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "DCCH"
SrcPort 1
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "PCH"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "SCH2"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Relative Gain"
Position [40, 175, 70, 205]
BackgroundColor "[0.000000, 0.501961, 1.000000]"
DropShadow on
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [780, 140, 815, 195]
BackgroundColor "[0.000000, 0.501961, 1.000000]"
DropShadow on
Location [1, 50, 1025, 733]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [640, 270, 675, 320]
BackgroundColor "[0.000000, 0.501961, 1.000000]"
DropShadow on
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "512"
inpFftLenInherit off
FFTlength "128"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-65"
YMax "15"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Constant
Name "data"
Position [225, 60, 255, 90]
BackgroundColor "[0.000000, 0.501961, 1.000000]"
DropShadow on
Value "0"
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Modulation"
DstPort 6
}
Line {
SrcBlock "FCH Frame Data"
SrcPort 1
Points [55, 0; 0, -5]
DstBlock "Modulation"
DstPort 4
}
Line {
SrcBlock "data"
SrcPort 1
Points [40, 0; 0, 5]
Branch {
DstBlock "Modulation"
DstPort 1
}
Branch {
Points [0, 35]
Branch {
DstBlock "Modulation"
DstPort 2
}
Branch {
Points [0, 35]
Branch {
DstBlock "Modulation"
DstPort 3
}
Branch {
Points [0, 70]
DstBlock "Modulation"
DstPort 5
}
}
}
}
Line {
SrcBlock "Modulation"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 125]
DstBlock "Spectrum\nScope"
DstPort 1
}
Branch {
DstBlock "Frame Status\nConversion"
DstPort 1
}
}
Line {
SrcBlock "Relative Gain"
SrcPort 1
DstBlock "FCH Frame Data"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 2
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . < 8 ( 0 % "
"\" $ ! 0 . 0 8 ( ! % \" $ "
", 0 0 # $9)4D1E8TEN=&5R< "
}
DataRecord {
Tag DataTag0
Data " %)30 . < 8 ( 0 % "
"\" $ ! 0 . 0 8 ( ! % \" $ "
", 0 0 # $9)4D1E8TEN=&5R< "
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?