📄 lhw_stbc_x4c.mdl
字号:
Ports [2, 1]
Position [515, 71, 550, 104]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType "S-Function"
Name "S-Function Builder"
Ports [1, 4]
Position [240, 48, 300, 107]
BackgroundColor "lightBlue"
CopyFcn "set_param(gcbh,'LinkStatus','none')"
PreSaveFcn "try, set_param(gcb,'FunctionName','x_4_c'), end"
OpenFcn "sfunctionwizard(gcbh)"
FontSize 10
FunctionName "x_4_c"
SFunctionModules "x_4_c_wrapper "
WizardData "DataTag1"
MaskType "S-Function Builder"
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"
MaskDisplay "plot(val(:,1),val(:,2)),disp(sys)port_label('in"
"put',1,'x')port_label('output',1,'y1')port_label('output',2,'y2')port_label('"
"output',3,'y3')port_label('output',4,'y4')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
}
Block {
BlockType Reference
Name "Source"
Ports [0, 1]
Position [15, 62, 65, 98]
FontSize 10
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "4"
seed "36887"
Ts "1e-5"
frameBased on
sampPerFrame "4"
orient off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [510, 530, 570, 560]
VariableName "ErrorVec"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Math
Name "Transpose"
Ports [1, 1]
Position [430, 65, 460, 95]
Operator "transpose"
}
Block {
BlockType Math
Name "Transpose1"
Ports [1, 1]
Position [755, 75, 785, 105]
Operator "transpose"
}
Block {
BlockType "S-Function"
Name "signal determination"
Ports [2, 1]
Position [921, 225, 979, 285]
Orientation "down"
BackgroundColor "lightBlue"
NamePlacement "alternate"
CopyFcn "set_param(gcbh,'LinkStatus','none')"
PreSaveFcn "try, set_param(gcb,'FunctionName','signal_deter"
"mination'), end"
InitFcn "try, set_param(gcb,'FunctionName','signal_deter"
"mination'), end,"
OpenFcn "sfunctionwizard(gcbh)"
FontSize 10
FunctionName "signal_determination"
SFunctionModules "signal_determination_wrapper "
WizardData "DataTag2"
MaskType "S-Function Builder"
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"
MaskDisplay "plot(val(:,1),val(:,2)),disp(sys)port_label('in"
"put',1,'h2')port_label('input',2,'x')port_label('output',1,'y0')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
}
Block {
BlockType SubSystem
Name "x3h decoder\nsignal estimation"
Ports [2, 1]
Position [885, 67, 950, 163]
BackgroundColor "lightBlue"
FontSize 10
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "x3h decoder\nsignal estimation"
Location [2, 74, 1014, 724]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "r"
Position [15, 58, 45, 72]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "h"
Position [15, 118, 45, 132]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Atomic Subsystem"
Ports [2, 24]
Position [170, 32, 230, 153]
FontSize 10
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Atomic Subsystem"
Location [2, 74, 1014, 724]
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, 88, 45, 102]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [20, 378, 50, 392]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [140, 260, 170, 290]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [85, 520, 115, 550]
Operator "conj"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 8]
Position [105, 44, 160, 146]
FontSize 10
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{ 1,2,3,4,5,6,7,8}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "Multiport\nSelector1"
Ports [1, 8]
Position [430, 224, 485, 326]
FontSize 10
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{ 1,2,3,4,5,6,7,8}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "Multiport\nSelector2"
Ports [1, 4]
Position [155, 368, 210, 402]
FontSize 10
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{ 1,2,3,4}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "Multiport\nSelector3"
Ports [1, 4]
Position [155, 518, 210, 552]
FontSize 10
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{ 1,2,3,4}"
idxErrMode "Clip Index"
}
Block {
BlockType Outport
Name "Out1"
Position [370, 13, 400, 27]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [370, 38, 400, 52]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out3"
Position [370, 63, 400, 77]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out4"
Position [370, 88, 400, 102]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out5"
Position [370, 113, 400, 127]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out6"
Position [370, 138, 400, 152]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out7"
Position [370, 158, 400, 172]
Port "7"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out8"
Position [370, 188, 400, 202]
Port "8"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out9"
Position [695, 188, 725, 202]
Port "9"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out10"
Position [695, 213, 725, 227]
Port "10"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out11"
Position [695, 243, 725, 257]
Port "11"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out12"
Position [695, 268, 725, 282]
Port "12"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out13"
Position [695, 293, 725, 307]
Port "13"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out14"
Position [695, 318, 725, 332]
Port "14"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out15"
Position [695, 343, 725, 357]
Port "15"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out16"
Position [695, 368, 725, 382]
Port "16"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out17"
Position [365, 348, 395, 362]
Port "17"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out18"
Position [365, 378, 395, 392]
Port "18"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out19"
Position [365, 408, 395, 422]
Port "19"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out20"
Position [365, 443, 395, 457]
Port "20"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out21"
Position [365, 498, 395, 512]
Port "21"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out22"
Position [365, 528, 395, 542]
Port "22"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out23"
Position [370, 558, 400, 572]
Port "23"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out24"
Position [370, 588, 400, 602]
Port "24"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Multiport\nSelector"
DstPort 1
}
Branch {
Points [0, 180]
DstBlock "Math\nFunction"
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Multiport\nSelector1"
DstPort 1
}
Line {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -