📄 koe_channel_awgn.mdl
字号:
Model { Name "koe_channel_awgn" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "1" SolverMode "Auto" Solver "ode45" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Matrix" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect off PreLoadFcn "N=10;HR=[0.8 0.2];HD=[0 1];" Created "Tue Jun 1 13:20:01 1999" Creator "maarit" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "maarit" ModifiedDateFormat "%<Auto>" LastModifiedDate "Mon Jun 21 12:00:56 1999" ModelVersionFormat "1.%<AutoIncrement:45>" ConfigurationManager "none" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "koe_channel_awgn" Location [443, 92, 1254, 919] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "AWGN\nchannel" Ports [1, 1, 0, 0, 0] Position [420, 18, 500, 62] ShowPortLabels on MaskType "AWGN Channel" MaskDescription "Add zero-mean white Gaussian noise to the input"" signal. The input and output signals can be real or complex. \n\nWhen usin""g either of the variance modes with complex inputs, be sure to specify the va""riance of the complex noise signal, that is, the sum of the variances of its ""real and imaginary components. " MaskHelp "<p>You can use the AWGN Channel block with eith""er real or complex\ninput signals. When the input signal is real, this block""\ngenerates real Gaussian noise and produces a real output signal.\nWhen the ""input signal is complex, this block generates complex\nGaussian noise and pro""duces a complex output signal.</p>\n\n<p>You can specify the variance of the ""noise generated by the\nAWGN Channel block using one of three modes:</p>\n\n<""blockquote>\n <ul>\n <li><b>Signal to noise ratio</b></li>\n "" <li><b>Variance from mask</b></li>\n <li><b>Variance from port</b></l""i>\n </ul>\n</blockquote>\n\n<p>In the <b>Signal to noise</b> ratio mode, ""the variance is\ncalculated from the following quantities you specify in the""\nparameter mask:</p>\n\n<blockquote>\n <ul>\n <li><i>E</i><sub><i>""s</i></sub>/<i>N</i><sub>0</sub>, the\n ratio of energy per symbol"" to noise power spectral\n density</li>\n <li>The input sig""nal power</li>\n <li>The symbol period</li>\n </ul>\n</blockquote>""\n\n<p>In the <b>Variance from mask mode</b>, you directly specify a\nvalue f""or the variance in the parameter mask. </p>\n\n<p>In the <b>Variance from por""t mode</b>, you provide the\nvariance as an input to the block.</p>\n\n<p><b>""Note:</b> When you apply complex input signals to the AWGN\nChannel block, it"" adds complex zero-mean Gaussian noise with the\ncalculated or specified vari""ance. The variance assigned to each\nof the quadrature components of the comp""lex noise is one-half of\nthe calculated or specified value.</p>" MaskPromptString "Seed:|Mode:|Es/No (dB):|Input signal power (Wat""ts):|Symbol period (sec):|Variance:" MaskStyleString "edit,popup(Signal to noise ratio|Variance from ""mask|Variance from port),edit,edit,edit,edit" MaskTunableValueString "off,off,on,on,off,on" MaskCallbackString "|commblkawgnchan(gcb,'Mode');||||" MaskEnableString "on,on,on,on,on,off" MaskVisibilityString "on,on,on,on,on,off" MaskVariables "seed=@1;noiseMode=@2;EsNodB=@3;Ps=@4;Tsym=@5;va""riance=@6;" MaskInitialization "[SeedVec, mode,s] = commblkawgnchan(gcb,'init',""{seed});\n" MaskDisplay "plot(-10,-10,110,110,[05 15 10 10 05 10 18 14 1""3 7.5 13 41 44 47 50 53 57 59 100-[13 7.5 13 14 18 10 5 10 10 15 5]],[70 70 7""0 85 92 85 79 82 90 88.5 90 90 87 93 87 93 87 90 90 88.5 90 82 79 85 92 85 70"" 70 70]);\ndisp('AWGN');\nport_label('input',s.i1,s.i1s);\nport_label('input'"",s.i2,s.i2s);\nport_label('output',s.o1,s.o1s);" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "123456|Signal to noise ratio|10|1|1/16|1" System { Name "AWGN\nchannel" Location [346, 208, 631, 428] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In" Position [40, 38, 70, 52] Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType "S-Function" Name "Dynamic AWGN" Ports [3, 1, 0, 0, 0] Position [105, 19, 185, 181] FunctionName "scomawgnchan" Parameters "mode,EsNodB,Ps,Tsym,variance" PortCounts "[]" SFunctionModules "''" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType RandomNumber Name "Random\nNumber" Position [40, 85, 70, 115] Diagnostics "AllowInheritedTsInSrc" Mean "0" Variance "1" Seed "SeedVec" SampleTime "-1" } Block { BlockType Ground Name "Variance" Position [40, 148, 70, 162] } Block { BlockType Outport Name "Out" Position [210, 93, 240, 107] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Variance" SrcPort 1 DstBlock "Dynamic AWGN" DstPort 3 } Line { SrcBlock "Random\nNumber" SrcPort 1 DstBlock "Dynamic AWGN" DstPort 2 } Line { SrcBlock "In" SrcPort 1 DstBlock "Dynamic AWGN" DstPort 1 } Line { SrcBlock "Dynamic AWGN" SrcPort 1 DstBlock "Out" DstPort 1 } } } Block { BlockType SubSystem Name "AWGN\nchannel1" Ports [1, 1, 0, 0, 0] Position [500, 78, 580, 122] ShowPortLabels on MaskType "AWGN Channel" MaskDescription "Add zero-mean white Gaussian noise to the input"" signal. The input and output signals can be real or complex. \n\nWhen usin""g either of the variance modes with complex inputs, be sure to specify the va""riance of the complex noise signal, that is, the sum of the variances of its ""real and imaginary components. " MaskHelp "<p>You can use the AWGN Channel block with eith""er real or complex\ninput signals. When the input signal is real, this block""\ngenerates real Gaussian noise and produces a real output signal.\nWhen the ""input signal is complex, this block generates complex\nGaussian noise and pro""duces a complex output signal.</p>\n\n<p>You can specify the variance of the ""noise generated by the\nAWGN Channel block using one of three modes:</p>\n\n<""blockquote>\n <ul>\n <li><b>Signal to noise ratio</b></li>\n "" <li><b>Variance from mask</b></li>\n <li><b>Variance from port</b></l""i>\n </ul>\n</blockquote>\n\n<p>In the <b>Signal to noise</b> ratio mode, ""the variance is\ncalculated from the following quantities you specify in the""\nparameter mask:</p>\n\n<blockquote>\n <ul>\n <li><i>E</i><sub><i>""s</i></sub>/<i>N</i><sub>0</sub>, the\n ratio of energy per symbol"" to noise power spectral\n density</li>\n <li>The input sig""nal power</li>\n <li>The symbol period</li>\n </ul>\n</blockquote>""\n\n<p>In the <b>Variance from mask mode</b>, you directly specify a\nvalue f""or the variance in the parameter mask. </p>\n\n<p>In the <b>Variance from por""t mode</b>, you provide the\nvariance as an input to the block.</p>\n\n<p><b>""Note:</b> When you apply complex input signals to the AWGN\nChannel block, it"" adds complex zero-mean Gaussian noise with the\ncalculated or specified vari""ance. The variance assigned to each\nof the quadrature components of the comp""lex noise is one-half of\nthe calculated or specified value.</p>" MaskPromptString "Seed:|Mode:|Es/No (dB):|Input signal power (Wat""ts):|Symbol period (sec):|Variance:" MaskStyleString "edit,popup(Signal to noise ratio|Variance from ""mask|Variance from port),edit,edit,edit,edit" MaskTunableValueString "off,off,on,on,off,on" MaskCallbackString "|commblkawgnchan(gcb,'Mode');||||" MaskEnableString "on,on,on,on,on,off" MaskVisibilityString "on,on,on,on,on,off" MaskVariables "seed=@1;noiseMode=@2;EsNodB=@3;Ps=@4;Tsym=@5;va""riance=@6;" MaskInitialization "[SeedVec, mode,s] = commblkawgnchan(gcb,'init',""{seed});\n" MaskDisplay "plot(-10,-10,110,110,[05 15 10 10 05 10 18 14 1""3 7.5 13 41 44 47 50 53 57 59 100-[13 7.5 13 14 18 10 5 10 10 15 5]],[70 70 7""0 85 92 85 79 82 90 88.5 90 90 87 93 87 93 87 90 90 88.5 90 82 79 85 92 85 70"" 70 70]);\ndisp('AWGN');\nport_label('input',s.i1,s.i1s);\nport_label('input'"",s.i2,s.i2s);\nport_label('output',s.o1,s.o1s);" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "123456|Signal to noise ratio|10|2|1|1" System { Name "AWGN\nchannel1" Location [346, 208, 631, 428] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In" Position [40, 38, 70, 52] Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType "S-Function" Name "Dynamic AWGN" Ports [3, 1, 0, 0, 0] Position [105, 19, 185, 181] FunctionName "scomawgnchan" Parameters "mode,EsNodB,Ps,Tsym,variance" PortCounts "[]" SFunctionModules "''" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType RandomNumber Name "Random\nNumber" Position [40, 85, 70, 115] Diagnostics "AllowInheritedTsInSrc" Mean "0" Variance "1" Seed "SeedVec" SampleTime "-1" } Block { BlockType Ground Name "Variance" Position [40, 148, 70, 162] } Block { BlockType Outport Name "Out" Position [210, 93, 240, 107] Port "1" OutputWhenDisabled "held"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -