📄 wcdmalib.mdl
字号:
SourceBlock "dspsigattribs/Inherit\nComplexity"
SourceType "Inherit Complexity"
}
Block {
BlockType Gain
Name "Polarity"
Position [155, 13, 200, 47]
Gain "pole"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow off
}
Block {
BlockType Probe
Name "Probe"
Ports [1, 1]
Position [135, 111, 245, 159]
ProbeWidth off
ProbeSampleTime off
ProbeComplexSignal on
ProbeSignalDimensions off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [300, 81, 345, 114]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [375, 63, 405, 92]
ShowName off
Input "RealAndImag"
ConstantPart "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [405, 20, 425, 40]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out2"
Position [670, 33, 700, 47]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [5, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Polarity"
DstPort 1
}
Branch {
Points [0, 105]
Branch {
DstBlock "Probe"
DstPort 1
}
Branch {
Points [0, 45; 425, 0]
DstBlock "Inherit\nComplexity"
DstPort 2
}
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [5, 0; 0, -15]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Probe"
SrcPort 1
Points [15, 0; 0, -30]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Polarity"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Inherit\nComplexity"
DstPort 1
}
Line {
SrcBlock "Inherit\nComplexity"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Complex Conjugate"
Ports [1, 1]
Position [150, 175, 230, 215]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Complex Conjugate"
MaskDescription "Performs Complex Conjugate of the input"
MaskDisplay "disp('Complex \\n Conjugate');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Complex Conjugate"
Location [470, 208, 810, 317]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [80, 28, 110, 57]
ShowName off
Output "RealAndImag"
}
Block {
BlockType Gain
Name "Gain"
Position [150, 55, 180, 85]
ShowName off
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [230, 28, 260, 57]
ShowName off
Input "RealAndImag"
ConstantPart "0"
}
Block {
BlockType Outport
Name "Out1"
Position [285, 38, 315, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [10, 0; 0, 20]
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0; 0, -20]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Energy\nMeasurement"
Ports [1, 1]
Position [270, 85, 350, 125]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Energy')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Energy\nMeasurement"
Location [148, 379, 489, 526]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "cIn"
Position [30, 28, 60, 42]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [200, 25, 245, 60]
ShowName off
Inputs "**"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Transpose"
Ports [1, 1]
Position [105, 65, 160, 105]
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
Hermitian "on"
}
Block {
BlockType Outport
Name "Out"
Position [280, 38, 310, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "cIn"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 50]
DstBlock "Transpose"
DstPort 1
}
Branch {
DstBlock "Product2"
DstPort 1
}
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Transpose"
SrcPort 1
Points [15, 0; 0, -35]
DstBlock "Product2"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Hadamard Matrix"
Ports [0, 1]
Position [150, 85, 230, 125]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Hadamard Matrix"
MaskPromptString "Order"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "order=@1;"
MaskDisplay "disp('256-Hadamard\\nMatrix');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "8"
System {
Name "Hadamard Matrix"
Location [417, 647, 886, 778]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "Hadamard Matrix"
Ports [0, 1]
Position [135, 28, 285, 62]
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "hadamard(2^order)"
InterpretAs1D "off"
SampleMode "Discrete"
Ts "0.01/15"
FramebasedOutput "on"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 38, 390, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Hadamard Matrix"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType "S-Function"
Name "Low Pass Filter"
Ports [1, 1]
Position [270, 265, 350, 305]
FunctionName "sdspupfir2"
Parameters "h,1,1,outputBufInitCond"
PortCounts "[]"
SFunctionModules "''"
MaskType "FIR Interpolation"
MaskDescription "KAISER window Low Pass filter"
MaskPromptString "Order of the Filter:|Cut-off Frequency|Outp"
"ut buffer initial conditions:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,off"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "N=@1;Wn=@2;outputBufInitCond=@3;"
MaskInitialization "h=fir1(N,Wn,kaiser(N+1,4))';"
MaskDisplay "plot( 1:prod( size( h)), h);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2|1/4|0"
MaskVariableAliases ",,"
}
Block {
BlockType SubSystem
Name "Normalize Ec"
Ports [1, 1]
Position [385, 85, 465, 125]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDescription "This block normalizes the energy per sample"
" of the input sequence."
MaskDisplay "disp('Normalize\\nEc');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Normalize Ec"
Location [276, 366, 762, 576]
Open off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -