📄 am_sys.mdl
字号:
Location [66, 10, 397, 324]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1.000000"
YMin "-2.000000"
YMax "2.000000"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "下边带信号"
Ports [1, 0, 0, 0, 0]
Position [430, 160, 460, 190]
ForegroundColor "green"
FontName "宋体"
FontSize 12
Floating off
Location [61, 154, 392, 468]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1.000000"
YMin "-2.000000"
YMax "2.000000"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SignalGenerator
Name "信号发生器\n频率(弧度/秒)"
Position [40, 83, 85, 117]
ForegroundColor "green"
FontName "宋体"
FontSize 12
WaveForm "sine"
Amplitude "1.000000"
Frequency "10.000000"
Units "rad/sec"
}
Block {
BlockType Sin
Name "载波"
Position [50, 150, 70, 170]
ForegroundColor "green"
FontName "宋体"
FontSize 12
Amplitude "1"
Frequency "100"
Phase "0"
SampleTime "-1"
}
Line {
SrcBlock "信号发生器\n频率(弧度/秒)"
SrcPort 1
DstBlock "乘法器"
DstPort 1
}
Line {
SrcBlock "乘法器"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Butterworth\nBP 滤波器 1"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Butterworth\nBP 滤波器 2"
DstPort 1
}
}
Line {
SrcBlock "Butterworth\nBP 滤波器 2"
SrcPort 1
DstBlock "下边带信号"
DstPort 1
}
Line {
SrcBlock "载波"
SrcPort 1
Points [60, 0]
Branch {
Points [0, -50]
DstBlock "乘法器"
DstPort 2
}
Branch {
Points [0, 155]
DstBlock "乘法器1"
DstPort 2
}
}
Line {
SrcBlock "Butterworth\nBP 滤波器 1"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "上边带信号"
DstPort 1
}
Branch {
Points [0, 120; -230, 0; 0, 80]
DstBlock "乘法器1"
DstPort 1
}
}
Line {
SrcBlock "乘法器1"
SrcPort 1
DstBlock "Butterworth\nLP 滤波器"
DstPort 1
}
Line {
SrcBlock "Butterworth\nLP 滤波器"
SrcPort 1
DstBlock "解调信号"
DstPort 1
}
Annotation {
Position [132, 322]
VerticalAlignment "top"
Text "接收端"
FontName "宋体"
FontSize 12
}
Annotation {
Position [157, 212]
VerticalAlignment "top"
Text "发送端"
FontName "宋体"
FontSize 12
}
Annotation {
Position [67, 242]
VerticalAlignment "top"
ForegroundColor "green"
Text "对 SSB 信号,无法\n直接从其中提取参考\n信号"
",故发送端在发\n射 SSB 信号的同时,\n还须发射受到一定程\n度抑制的载波信号。\n"
"(称为导频信号)"
FontName "宋体"
FontSize 12
}
Annotation {
Position [397, 72]
VerticalAlignment "top"
ForegroundColor "green"
Text "已调 SSB 信号"
FontName "宋体"
FontSize 12
}
Annotation {
Position [237, 67]
VerticalAlignment "top"
ForegroundColor "green"
Text "Y(t) = X(t)*cos(Wc*t+p)"
FontName "宋体"
FontSize 12
}
Annotation {
Position [122, 82]
VerticalAlignment "top"
ForegroundColor "green"
Text "X(t)"
FontName "宋体"
FontSize 12
}
Annotation {
Position [62, 62]
VerticalAlignment "top"
ForegroundColor "green"
Text "调制信号"
FontName "宋体"
FontSize 12
}
Annotation {
Position [72, 187]
VerticalAlignment "top"
ForegroundColor "green"
Text "cos ( Wc * t + p )\nWc 载波角频率\np 载波初"
"始相位"
FontName "宋体"
FontSize 12
}
Annotation {
Position [247, 117]
VerticalAlignment "top"
ForegroundColor "green"
Text "DSB"
FontName "宋体"
FontSize 12
}
Annotation {
Position [182, 327]
VerticalAlignment "top"
Text "导频信号"
FontName "宋体"
FontSize 12
}
Annotation {
Position [187, 287]
VerticalAlignment "top"
Text "上边带 SSB"
FontName "宋体"
FontSize 12
}
Annotation {
Position [267, 17]
VerticalAlignment "top"
Text "同步调制/解调 AM 系统 ( 单边带 SSB )—— "
"滤波器法"
FontName "宋体"
FontSize 12
}
Annotation {
Position [257, 347]
VerticalAlignment "top"
Text "同步解调"
FontName "宋体"
FontSize 12
}
}
}
Block {
BlockType SubSystem
Name "同步调制/解调系统\n(单边带 SSB)之滤波法"
Ports [0, 0, 0, 0, 0]
Position [330, 69, 441, 146]
DropShadow on
OpenFcn "am_sys3"
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskDisplay "disp('AM - SSB\\n(滤波法)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "同步调制/解调系统\n(单边带 SSB)之滤波法"
Location [-10, 380, 117, 533]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "同步调制/解调系统\n(单边带 SSB)之移相法"
Ports [0, 0, 0, 0, 0]
Position [330, 189, 441, 266]
DropShadow on
OpenFcn "am_sys4"
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskDisplay "disp('AM - SSB\\n(移相法)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "同步调制/解调系统\n(单边带 SSB)之移相法"
Location [-10, 380, 117, 533]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "同步调制/解调系统\n(双边带 DSB)1"
Ports [0, 0, 0, 0, 0]
Position [222, 500, 305, 556]
DropShadow on
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskDisplay "disp('AM\\nSystem - 2')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "同步调制/解调系统\n(双边带 DSB)1"
Location [6, 84, 632, 512]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType StateSpace
Name "Butterworth\nBP 滤波器"
Position [120, 209, 180, 251]
ForegroundColor "yellow"
FontName "宋体"
FontSize 12
A "at"
B "bt"
C "ct"
D "dt"
X0 "0"
MaskType "buttap,lp2bp"
MaskDescription "Analog Butterworth band pass filter.\n\n(Re"
"quires Signal Processing Toolbox)"
MaskHelp "Butterworth band pass filter using MATLAB's"
" butter and lp2bp command."
MaskPromptString "Center frequency (rad/sec)|Bandwidth (rad/s"
"ec):|Order"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskInitialization "[at,bt,ct,dt,w,mag]=filtm('buttap','lp2bp',"
"@1,@2,50,@3);"
MaskDisplay "plot(w,mag)"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "200|10|4"
}
Block {
BlockType StateSpace
Name "Butterworth\nBP 滤波器1"
Position [355, 209, 415, 251]
ForegroundColor "yellow"
FontName "宋体"
FontSize 12
A "at"
B "bt"
C "ct"
D "dt"
X0 "0"
MaskType "buttap,lp2bp"
MaskDescription "Analog Butterworth band pass filter.\n\n(Re"
"quires Signal Processing Toolbox)"
MaskHelp "Butterworth band pass filter using MATLAB's"
" butter and lp2bp command."
MaskPromptString "Center frequency (rad/sec)|Bandwidth (rad/s"
"ec):|Order"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskInitialization "[at,bt,ct,dt,w,mag]=filtm('buttap','lp2bp',"
"@1,@2,50,@3);"
MaskDisplay "plot(w,mag)"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|10|4"
}
Block {
BlockType ZeroPole
Name "Butterworth\nLP 滤波器"
Position [395, 338, 455, 382]
FontName "宋体"
FontSize 12
Zeros "z"
Poles "p"
Gain "k"
MaskType "buttap"
MaskDescription "Analog Butterworth low pass filter.\n\n(Req"
"uires Signal Processing Toolbox)"
MaskHelp "Butterworth low pass filter using MATLAB's "
"butter command."
MaskPromptString "Cutoff frequency (rad/sec)|Order"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskInitialization "[z,p,k]=buttap(@2); z=@1*z; p=@1*p; k=real("
"prod(-p)); [num,den]=zp2tf(z,p,k); w=logspace(log10(@1/10),log10(10*@1),20); "
"h=freqs(num,den,w); "
MaskDisplay "plot(20*log10(w),20*log10(abs(h)))"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "10|4"
}
Block {
BlockType Product
Name "乘法器"
Ports [2, 1, 0, 0, 0]
Position [225, 89, 255, 111]
FontName "宋体"
FontSize 12
Inputs "2"
SaturateOnIntegerOverflow on
MaskType "乘法器"
MaskDescription "乘法器"
MaskDisplay "plot([0 1],[1 0],[0 1],[0 1]);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Product
Name "乘法器2"
Ports [2, 1, 0, 0, 0]
Position [260, 349, 290, 371]
FontName "宋体"
FontSize 12
Inputs "2"
SaturateOnIntegerOverflow on
MaskType "乘法器"
MaskDescription "乘法器"
MaskDisplay "plot([0 1],[1 0],[0 1],[0 1]);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType TransportDelay
Name "传输延迟"
Position [145, 350, 185, 380]
FontName "宋体"
FontSize 12
DelayTime "0.09"
InitialInput "0"
BufferSize "1024"
}
Block {
BlockType Scope
Name "调制后信号波形"
Ports [1, 0, 0, 0, 0]
Position [530, 85, 560, 115]
FontName "宋体"
FontSize 12
Floating off
Location [0, 120, 331, 276]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1.000000"
YMin "-2.000000"
YMax "2.000000"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType MATLABFcn
Name "二分频"
Position [255, 211, 325, 249]
ForegroundColor "yellow"
FontName "宋体"
FontSize 12
MATLABFcn "df2"
OutputWidth "-1"
OutputSignalType "auto"
MaskType "分频器"
MaskDescription "二分频器"
MaskDisplay "disp('Frequency\\n—————\\n2')"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -