📄 rayleighflatfading_psk_div.mdl
字号:
Position [195, 28, 245, 112]
ShowName off
Inputs "**"
Multiplication "Matrix(*)"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType FrameConversion
Name "Frame Conversion"
Ports [1, 1]
Position [370, 58, 405, 82]
ShowName off
}
Block {
BlockType Sum
Name "Sum of\nElements"
Ports [1, 1]
Position [280, 55, 310, 85]
Inputs "+"
CollapseMode "Specified dimension"
CollapseDim "2"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [470, 63, 500, 77]
IconDisplay "Port number"
}
Line {
SrcBlock "Sum of\nElements"
SrcPort 1
DstBlock "Frame Conversion"
DstPort 1
}
Line {
SrcBlock "Conj"
SrcPort 1
DstBlock "Create Diagonal\nMatrix"
DstPort 1
}
Line {
SrcBlock "Divide1"
SrcPort 1
DstBlock "Sum of\nElements"
DstPort 1
}
Line {
SrcBlock "Create Diagonal\nMatrix"
SrcPort 1
DstBlock "Divide1"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Divide1"
DstPort 1
}
Line {
SrcBlock "Frame Conversion"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Conj"
DstPort 1
}
}
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [605, 320, 665, 350]
NamePlacement "alternate"
VariableName "BER"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [605, 575, 665, 605]
VariableName "SER"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType SubSystem
Name "zzzzz"
Ports []
Position [63, 339, 587, 440]
BackgroundColor "lightBlue"
DropShadow on
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "zzzzz"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "zzzzz1"
Ports []
Position [63, 483, 590, 595]
BackgroundColor "[0.501961, 1.000000, 0.501961]"
DropShadow on
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "zzzzz1"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "zzzzz2"
Ports []
Position [15, 138, 264, 282]
BackgroundColor "[0.925490, 0.670588, 0.827451]"
DropShadow on
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "zzzzz2"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "zzzzz3"
Ports []
Position [551, 159, 922, 295]
BackgroundColor "[0.643137, 0.670588, 0.827451]"
DropShadow on
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "zzzzz3"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 50]
DstBlock "Goto"
DstPort 1
}
Branch {
DstBlock "M-PSK\nModulator\nBaseband"
DstPort 1
}
}
Line {
SrcBlock "M-PSK\nModulator\nBaseband"
SrcPort 1
DstBlock "L-Antenna\nChannel"
DstPort 1
}
Line {
SrcBlock "M-PSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Data Type\nConversion3"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Bit to Integer\nConverter1"
DstPort 1
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Display1"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "To Workspace1"
DstPort 1
}
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
Points [10, 0; 0, 10]
DstBlock "Error Rate\nCalculation1"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter1"
SrcPort 1
Points [10, 0; 0, -10]
DstBlock "Error Rate\nCalculation1"
DstPort 2
}
Line {
SrcBlock "Data Type\nConversion3"
SrcPort 1
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "L-Antenna\nChannel"
SrcPort 1
DstBlock "Path Combiner\n(Using MRC)"
DstPort 1
}
Line {
SrcBlock "L-Antenna\nChannel"
SrcPort 2
DstBlock "Path Combiner\n(Using MRC)"
DstPort 2
}
Line {
SrcBlock "Path Combiner\n(Using MRC)"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "M-PSK\nDemodulator\nBaseband"
DstPort 1
}
Branch {
Points [0, -115]
DstBlock "Double-click\nto Open1"
DstPort 1
}
}
Annotation {
Name "Compute Symbol Error Rate"
Position [188, 463]
BackgroundColor "[0.501961, 1.000000, 0.501961]"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Compute Bit Error Rate"
Position [168, 318]
BackgroundColor "lightBlue"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Receiver"
Position [598, 138]
BackgroundColor "[0.643137, 0.670588, 0.823529]"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Transmitter"
Position [73, 118]
BackgroundColor "[0.925490, 0.674510, 0.835294]"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "M-PSK Transmission over Rayleigh\nFlat Fading Channel - with Diversity"
Position [12, 29]
HorizontalAlignment "left"
BackgroundColor "darkGreen"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Bit Error Rate"
Position [600, 373]
HorizontalAlignment "left"
}
Annotation {
Name "Num Bit Errors"
Position [597, 395]
HorizontalAlignment "left"
}
Annotation {
Name "Num Bits xmitted"
Position [599, 415]
HorizontalAlignment "left"
}
Annotation {
Name "Sym Error Rate"
Position [601, 513]
HorizontalAlignment "left"
}
Annotation {
Name "Num Sym Errors"
Position [603, 535]
HorizontalAlignment "left"
}
Annotation {
Name "Num Syms xmitted"
Position [600, 555]
HorizontalAlignment "left"
}
Annotation {
Name "Perfect Channel State Information (CSI) is assumed at the receiver."
Position [13, 68]
HorizontalAlignment "left"
}
}
}
MatData {
NumRecords 7
DataRecord {
Tag DataTag6
Data " %)30 . @ 8 ( 0 % \" $ ! 0 . 4 8 ( ! "
" % \" $ - 0 $ &@ $T 4 !3 $L 30!O &0 =0!L &$ = !O '( "
}
DataRecord {
Tag DataTag5
Data " %)30 . @ 8 ( 0 % \" $ ! 0 . 4 8 ( ! "
" % \" $ / 0 $ '@ $T 4 !3 $L 1 !E &T ;P!D '4 ; !A '0 ;P!R "
}
DataRecord {
Tag DataTag4
Data " %)30 . \\ 8 ( @ % \" $ ! 0 % 0 \"0 $ 2 4V5E"
"9 4V5E9$9L86< #@ $ & \" 0 !0 @ ! !0 $ ! H R #, ,0 Q "
"#, #@ % & \" 0 !0 @ ! #0 $ ! !H !$ &\\ 3@!O '0 4P!A '8 90!3 "
"&4 90!D "
}
DataRecord {
Tag DataTag3
Data " %)30 . \\ 8 ( @ % \" $ ! 0 % 0 \"0 $ 2 4V5E"
"9 4V5E9$9L86< #@ $ & \" 0 !0 @ ! !0 $ ! H R #, ,0 Q "
"#, #@ % & \" 0 !0 @ ! #0 $ ! !H !$ &\\ 3@!O '0 4P!A '8 90!3 "
"&4 90!D "
}
DataRecord {
Tag DataTag2
Data " %)30 . : 8 ( 0 % \" $ ! 0 . . 8 ( ! "
" % \" $ $ 0 $ \" $T 90!A &X "
}
DataRecord {
Tag DataTag1
Data " %)30 . < 8 ( 0 % \" $ ! 0 . 0 8 ( ! "
" % \" $ ( 0 $ $ %8 80!R &D 80!N &, 90 "
}
DataRecord {
Tag DataTag0
Data " %)30 . B 8 ( 0 % \" $ ! 0 . 6 8 ( ! "
" % \" $ 2 0 $ ) $( 90!R &X ;P!U &P ; !I $( :0!N &$ <@!Y $< 90!N "
}
}
Stateflow {
machine {
id 1
name "tp3647c845_951e_4f64_8647_df58ec6bbb8b"
created "06-Aug-2008 11:12:56"
isLibrary 0
firstTarget 2
sfVersion 71014000.000003
}
target {
id 2
name "sfun"
codeFlags " debug=1 overflow=1 echo=1"
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -