📄 sc8.mdl
字号:
ActionType "then"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Switch Case Action\nSubsystem2"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [655, 215, 725, 245]
TreatAsAtomicUnit on
System {
Name "Switch Case Action\nSubsystem2"
Location [319, 422, 817, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
}
Block {
BlockType ActionPort
Name "Action Port"
Position [170, 15, 229, 43]
InitializeStates "reset"
ActionType "elseif"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Switch Case Action\nSubsystem3"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [655, 300, 725, 330]
TreatAsAtomicUnit on
System {
Name "Switch Case Action\nSubsystem3"
Location [319, 422, 817, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
}
Block {
BlockType ActionPort
Name "Action Port"
Position [170, 15, 229, 43]
InitializeStates "reset"
ActionType "then"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Switch Case Action\nSubsystem4"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [590, 385, 660, 415]
TreatAsAtomicUnit on
System {
Name "Switch Case Action\nSubsystem4"
Location [319, 422, 817, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
}
Block {
BlockType ActionPort
Name "Action Port"
Position [170, 15, 229, 43]
InitializeStates "reset"
ActionType "elseif"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "channel"
Ports [1, 1]
Position [110, 330, 210, 390]
TreatAsAtomicUnit off
MaskDisplay "disp('channel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "channel"
Location [131, 281, 521, 505]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [215, 25, 295, 65]
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "99"
noiseMode "Signal to noise ratio (SNR)"
EsNodB "40"
SNRdB "EbNodB"
Ps "1"
Tsym "4e-6/80"
variance "1"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [105, 30, 165, 60]
MATLABFcn "rice_fading"
Output1D off
}
Block {
BlockType Outport
Name "Out"
Position [330, 38, 360, 52]
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "channel1"
Ports [1, 1]
Position [110, 250, 210, 310]
TreatAsAtomicUnit off
MaskDisplay "disp('channel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "channel1"
Location [131, 281, 521, 505]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [215, 25, 295, 65]
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "87"
noiseMode "Signal to noise ratio (SNR)"
EsNodB "40"
SNRdB "EbNodB"
Ps "1"
Tsym "4e-6/80"
variance "1"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [105, 30, 165, 60]
MATLABFcn "rice_fading"
Output1D off
}
Block {
BlockType Outport
Name "Out"
Position [330, 38, 360, 52]
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "channel2"
Ports [1, 1]
Position [110, 170, 210, 230]
TreatAsAtomicUnit off
MaskDisplay "disp('channel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "channel2"
Location [131, 281, 521, 505]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [215, 25, 295, 65]
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "74"
noiseMode "Signal to noise ratio (SNR)"
EsNodB "40"
SNRdB "EbNodB"
Ps "1"
Tsym "4e-6/80"
variance "1"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [105, 30, 165, 60]
MATLABFcn "rice_fading"
Output1D off
}
Block {
BlockType Outport
Name "Out"
Position [330, 38, 360, 52]
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "channel3"
Ports [1, 1]
Position [110, 90, 210, 150]
TreatAsAtomicUnit off
MaskDisplay "disp('channel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "channel3"
Location [131, 281, 521, 505]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [215, 25, 295, 65]
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "61"
noiseMode "Signal to noise ratio (SNR)"
EsNodB "40"
SNRdB "EbNodB"
Ps "1"
Tsym "4e-6/80"
variance "1"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [105, 30, 165, 60]
MATLABFcn "rice_fading"
Output1D off
}
Block {
BlockType Outport
Name "Out"
Position [330, 38, 360, 52]
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [905, 263, 935, 277]
}
Block {
BlockType Outport
Name "Out2"
Position [430, 78, 460, 92]
Port "2"
}
Line {
SrcBlock "Abs"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "If"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "MinMax"
DstPort 1
}
}
Line {
SrcBlock "Abs1"
SrcPort 1
Points [25, 0; 0, -50]
Branch {
DstBlock "If"
DstPort 3
}
Branch {
Points [0, -70]
DstBlock "MinMax"
DstPort 2
}
}
Line {
SrcBlock "channel2"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Abs1"
DstPort 1
}
Branch {
Points [0, 30; 125, 0]
Branch {
DstBlock "Switch Case Action\nSubsystem2"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Display4"
DstPort 1
}
}
}
Line {
SrcBlock "channel3"
SrcPort 1
Points [10, 0; 0, 15]
Branch {
DstBlock "Abs"
DstPort 1
}
Branch {
Points [0, 40; 130, 0]
Branch {
DstBlock "Switch Case Action\nSubsystem1"
DstPort 1
}
Branch {
DstBlock "Display"
DstPort 1
}
}
}
Line {
SrcBlock "MinMax"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "channel1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Abs2"
DstPort 1
}
Branch {
Points [0, 35; 130, 0]
Branch {
DstBlock "Switch Case Action\nSubsystem3"
DstPort 1
}
Branch {
DstBlock "Display2"
DstPort 1
}
}
}
Line {
SrcBlock "channel"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Abs3"
DstPort 1
}
Branch {
Points [0, 40; 130, 0]
Branch {
DstBlock "Switch Case Action\nSubsystem4"
DstPort 1
}
Branch {
DstBlock "Display1"
DstPort 1
}
}
}
Line {
SrcBlock "Abs2"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "If1"
DstPort 2
}
Branch {
Points [0, -195]
DstBlock "MinMax"
DstPort 3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -