📄 sc8.mdl
字号:
}
}
Line {
SrcBlock "Abs3"
SrcPort 1
Points [45, 0; 0, -65]
Branch {
DstBlock "If1"
DstPort 3
}
Branch {
Points [0, -205]
DstBlock "MinMax"
DstPort 4
}
}
Line {
SrcBlock "If"
SrcPort 1
Points [160, 0]
DstBlock "Switch Case Action\nSubsystem1"
DstPort ifaction
}
Line {
SrcBlock "If"
SrcPort 2
Points [85, 0]
DstBlock "Switch Case Action\nSubsystem2"
DstPort ifaction
}
Line {
SrcBlock "If1"
SrcPort 1
Points [90, 0]
DstBlock "Switch Case Action\nSubsystem3"
DstPort ifaction
}
Line {
SrcBlock "If1"
SrcPort 2
Points [25, 0]
DstBlock "Switch Case Action\nSubsystem4"
DstPort ifaction
}
Line {
SrcBlock "Switch Case Action\nSubsystem1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Switch Case Action\nSubsystem2"
SrcPort 1
Points [105, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Switch Case Action\nSubsystem3"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Switch Case Action\nSubsystem4"
SrcPort 1
Points [165, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [30, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [-10, 0; 0, 30]
Branch {
Points [0, 145]
DstBlock "If1"
DstPort 1
}
Branch {
DstBlock "If"
DstPort 1
}
}
Line {
SrcBlock "In2"
SrcPort 1
Points [0, 30]
Branch {
Points [0, 80]
Branch {
Points [0, 80]
Branch {
Points [0, 80]
DstBlock "channel"
DstPort 1
}
Branch {
DstBlock "channel1"
DstPort 1
}
}
Branch {
DstBlock "channel2"
DstPort 1
}
}
Branch {
DstBlock "channel3"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 2]
Position [630, 175, 670, 235]
TreatAsAtomicUnit off
System {
Name "Subsystem1"
Location [-11, 117, 959, 580]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [435, 28, 465, 42]
}
Block {
BlockType Inport
Name "In2"
Position [25, 83, 55, 97]
Port "2"
}
Block {
BlockType Abs
Name "Abs"
Position [250, 120, 280, 150]
}
Block {
BlockType Abs
Name "Abs1"
Position [250, 185, 280, 215]
}
Block {
BlockType Abs
Name "Abs2"
Position [250, 265, 280, 295]
}
Block {
BlockType Abs
Name "Abs3"
Position [250, 345, 280, 375]
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [370, 180, 460, 210]
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [370, 405, 460, 435]
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [370, 320, 460, 350]
Decimation "1"
}
Block {
BlockType Display
Name "Display4"
Ports [1]
Position [370, 235, 460, 265]
Decimation "1"
}
Block {
BlockType If
Name "If"
Ports [3, 2]
Position [500, 114, 600, 156]
NumInputs "3"
IfExpression "u1==u2"
ElseIfExpressions "u1==u3"
ShowElse off
}
Block {
BlockType If
Name "If1"
Ports [3, 2]
Position [495, 259, 595, 301]
NumInputs "3"
IfExpression "u1==u2"
ElseIfExpressions "u1==u3"
ShowElse off
}
Block {
BlockType MinMax
Name "MinMax"
Ports [4, 1]
Position [375, 67, 405, 98]
Function "max"
Inputs "4"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [340, 24, 370, 56]
Location [6, 193, 1019, 432]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [825, 165, 845, 185]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [820, 305, 840, 325]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [865, 260, 885, 280]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType SubSystem
Name "Switch Case Action\nSubsystem1"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [730, 158, 800, 192]
TreatAsAtomicUnit on
System {
Name "Switch Case Action\nSubsystem1"
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\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 [90, 330, 190, 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 "174"
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 [90, 250, 190, 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 "146"
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
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -