📄 dsb.mdl
字号:
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "10"
Wlo "10"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise"
Ports [0, 1]
Position [180, 35, 220, 85]
Orientation "down"
NamePlacement "alternate"
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Continuous White Noise."
Cov "[0.2]"
Ts "0.1"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType BusCreator
Name "Bus\nCreator"
Ports [2, 1]
Position [525, 125, 530, 185]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [130, 145, 185, 180]
Port {
PortNumber 1
Name "dsb\n"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [345, 134, 400, 181]
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [275, 254, 305, 286]
Location [174, 243, 1002, 621]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "-5~-5~-5"
YMax "5~5~5"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [250, 117, 290, 173]
ShowName off
Inputs "|++"
Port {
PortNumber 1
Name "加噪声后"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Scope
Name "加噪声后波形"
Ports [1]
Position [375, 25, 415, 75]
Location [438, 347, 1027, 640]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "解调后波形"
Ports [1]
Position [575, 130, 615, 180]
Location [372, 287, 888, 580]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "信源"
Position [15, 85, 55, 135]
SineType "Time based"
Amplitude "1.414"
Frequency "1.75*pi"
Phase "pi/2"
SampleTime "0.01"
Port {
PortNumber 1
Name "信源\n"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sin
Name "载波"
Position [15, 200, 55, 250]
SineType "Time based"
Frequency "30*pi"
Phase "pi/2"
SampleTime "0.01"
Port {
PortNumber 1
Name "载波\n"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Line {
Name "载波\n"
Labels [0, 0]
SrcBlock "载波"
SrcPort 1
Points [30, 0]
Branch {
Points [0, -55]
DstBlock "Product"
DstPort 2
}
Branch {
Labels [1, 0]
Points [45, 0]
Branch {
Labels [1, 0]
Points [175, 0; 0, -55]
DstBlock "Product1"
DstPort 2
}
Branch {
Labels [2, 0]
Points [0, 45]
DstBlock "Scope"
DstPort 2
}
}
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
DstBlock "Bus\nCreator"
DstPort 2
}
Line {
SrcBlock "Bus\nCreator"
SrcPort 1
DstBlock "解调后波形"
DstPort 1
}
Line {
Name "dsb\n"
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
Labels [1, 0]
Points [0, 95]
DstBlock "Scope"
DstPort 1
}
}
Line {
Name "信源\n"
Labels [0, 0]
SrcBlock "信源"
SrcPort 1
Points [20, 0]
Branch {
Points [10, 0]
Branch {
Points [0, 45]
DstBlock "Product"
DstPort 1
}
Branch {
Points [420, 0]
DstBlock "Bus\nCreator"
DstPort 1
}
}
Branch {
Labels [1, 0]
Points [0, 170]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "Band-Limited\nWhite Noise"
SrcPort 1
Points [0, 55]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [0, 10]
DstBlock "Analog\nFilter Design"
DstPort 1
}
Line {
Name "加噪声后"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, -95]
DstBlock "加噪声后波形"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -