📄 1encodingnuevo4.mdl
字号:
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name " 50 bits Clase a1(CRC) + 3bits"
Location [360, 105, 701, 251]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 55, 45, 70]
Orientation "up"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "General CRC\nGenerator"
Ports [1, 1]
Position [170, 26, 245, 74]
SourceBlock "commcrc2/General CRC\nGenerator"
SourceType "General CRC Generator"
genPoly "[1 1 0 1]"
iniStates "[0]"
numChecksums "1"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [80, 30, 130, 60]
MATLABFcn "u(1:50)"
OutputDimensions "[50,1]"
Output1D off
}
Block {
BlockType Outport
Name "Out1"
Position [270, 43, 300, 57]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
Points [20, 0]
DstBlock "General CRC\nGenerator"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, -5]
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "General CRC\nGenerator"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "132 bits Clase a2 "
Ports [1, 1]
Position [140, 221, 295, 249]
BackgroundColor "gray"
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "132 bits Clase a2 "
Location [132, 144, 447, 234]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [90, 25, 140, 55]
MATLABFcn "u(51:182)"
OutputDimensions "[132,1]"
Output1D off
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [190, 27, 235, 63]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "136"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out1"
Position [260, 38, 290, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "MATLAB Fcn1"
SrcPort 1
Points [0, 5]
DstBlock "Zero Pad"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "MATLAB Fcn1"
DstPort 1
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "78 Bits Clase 2 sin codificar"
Ports [1, 1]
Position [135, 271, 295, 299]
BackgroundColor "gray"
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "78 Bits Clase 2 sin codificar"
Location [117, 249, 447, 351]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer2"
Ports [1, 1]
Position [200, 25, 250, 75]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "78"
V "0"
ic "0"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn2"
Position [90, 25, 140, 55]
MATLABFcn "u(183:260)"
OutputDimensions "[78,1]"
Output1D off
}
Block {
BlockType Outport
Name "Out1"
Position [275, 43, 305, 57]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "MATLAB Fcn2"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Buffer2"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "MATLAB Fcn2"
DstPort 1
}
Line {
SrcBlock "Buffer2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [340, 744, 420, 786]
FontSize 10
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "67"
noiseMode "Signal to noise ratio (Eb/No)"
EbNodB "-5"
EsNodB "10"
SNRdB "10"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [15, 217, 100, 253]
ShowName off
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "20394875"
Ts "1/9600"
frameBased on
sampPerFrame "260"
orient off
}
Block {
BlockType SubSystem
Name "Codificacion Diferencial"
Ports [1, 1]
Position [560, 480, 660, 540]
Orientation "left"
ForegroundColor "[0.250980, 0.000000, 0.250980]"
BackgroundColor "magenta"
NamePlacement "alternate"
FontName "Arial"
FontSize 16
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Codificacion Diferencial"
Location [360, 354, 685, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [80, 25, 140, 55]
MATLABFcn "diferencia"
Output1D off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [185, 25, 245, 55]
MATLABFcn "1-(2*u)"
Output1D off
}
Block {
BlockType Outport
Name "Out1"
Position [270, 33, 300, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "MATLAB Fcn1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [640, 788, 670, 817]
Output "Real and imag"
}
Block {
BlockType "S-Function"
Name "Entrelazado\n3GPP TS 05.03 version 8.9.0\n"
Ports [1, 1]
Position [580, 181, 725, 259]
BackgroundColor "yellow"
CopyFcn "set_param(gcb,'LinkStatus','none')"
OpenFcn "sfunctionwizard(gcbh)"
FontName "Arial"
FontSize 16
FunctionName "entrelazado1"
SFunctionModules "entrelazado1_wrapper "
WizardData "DataTag0"
MaskInitialization "val = [[.9 0.75 0.75 1 1 .9 .9 1]',[1 1 0.75 0"
".75 .9 .9 1 .9]'];try , sys = get_param(gcb,'SfunBuilderFcnName');if isempty("
"sys), sys = get_param(gcb,'FunctionName'); end,catch, sys = get_param(gcb,'Fu"
"nctionName'); end"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -