spreadspectrum1.mdl
来自「一个matlab扩频通信系统simulink仿真系统从发送端到接收到各个部分」· MDL 代码 · 共 1,245 行 · 第 1/3 页
MDL
1,245 行
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[232 258 560 420]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-44.8650858980543"
YMax "21.2093444124466"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [270, 211, 315, 244]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [365, 221, 410, 254]
InputSameDT off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [560, 221, 605, 254]
InputSameDT off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [560, 296, 605, 329]
InputSameDT off
}
Block {
BlockType RandomNumber
Name "Random\nNumber"
Position [355, 295, 385, 325]
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [220, 414, 250, 446]
Location [6, 456, 330, 695]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [290, 124, 320, 156]
Location [6, 266, 330, 472]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [375, 119, 405, 151]
Location [6, 70, 330, 309]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [300, 389, 330, 421]
Location [149, 456, 473, 695]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [480, 129, 510, 161]
Location [6, 266, 330, 505]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [545, 129, 575, 161]
Location [188, 365, 512, 604]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [635, 114, 665, 146]
Location [188, 365, 512, 604]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [880, 284, 910, 316]
Location [6, 518, 330, 757]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
}
Block {
BlockType Signum
Name "Sign"
Position [120, 125, 150, 155]
}
Block {
BlockType Signum
Name "Sign1"
Position [810, 285, 840, 315]
}
Block {
BlockType Sin
Name "Sine Wave"
Position [240, 280, 270, 310]
SineType "Time based"
Amplitude "2"
Frequency "30*pi"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave1"
Position [450, 290, 480, 320]
SineType "Time based"
Amplitude "2"
Frequency "30*pi"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [465, 225, 485, 245]
ShowName off
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType UniformRandomNumber
Name "Uniform Random\nNumber"
Position [55, 124, 85, 156]
SampleTime "1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [170, 506, 205, 544]
SampleTime "1/50"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [285, 31, 320, 69]
SampleTime "1/50"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [360, 491, 395, 529]
SampleTime "1/50"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [500, 36, 535, 74]
SampleTime "1/50"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold4"
Position [430, 406, 465, 444]
SampleTime "1/50"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold5"
Position [550, 371, 585, 409]
SampleTime "1/50"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold6"
Position [710, 111, 745, 149]
SampleTime "1/50"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold7"
Position [695, 386, 730, 424]
SampleTime "1/50"
}
Block {
BlockType Reference
Name "addnose Spectrum"
Ports [1]
Position [615, 425, 650, 475]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
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 on
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-17.3026986747312"
YMax "15.5961960696564"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Reference
Name "base Spectrum\n"
Ports [1]
Position [375, 25, 410, 75]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
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 "[232 258 560 420]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-43.950410280977"
YMax "19.7148323128674"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Reference
Name "demapn Spectrum2"
Ports [1]
Position [770, 385, 805, 435]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
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 "[271 64 560 420]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-12.0861387687845"
YMax "25.4438795308757"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Reference
Name "demasin Spectrum1"
Ports [1]
Position [790, 70, 825, 120]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?