⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch3example18.mdl

📁 清华大学出版社 邵玉斌编写的《通信系统建模与仿真实例分析》一书的所有MATLAB和SIMULINK代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      Ports		      [1, 1]
      Position		      [325, 149, 405, 191]
      SourceBlock	      "commchan2/AWGN\nChannel"
      SourceType	      "AWGN Channel"
      seed		      "67"
      noiseMode		      "Signal to noise ratio  (Es/No)"
      EsNodB		      "20"
      SNRdB		      "30"
      Ps		      "1"
      Tsym		      "0.01"
      variance		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Bernoulli Binary\nGenerator"
      Ports		      [0, 1]
      Position		      [15, 83, 95, 127]
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Bernoulli Binary\nGenerator"
      SourceType	      "Bernoulli Binary Generator"
      P			      "0.5"
      seed		      "61"
      Ts		      "0.01"
      frameBased	      off
      sampPerFrame	      "1"
      orient		      off
    }
    Block {
      BlockType		      Constant
      Name		      "Constant"
      Position		      [70, 30, 100, 60]
      Value		      "0"
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [565, 25, 655, 55]
      Decimation	      "1"
    }
    Block {
      BlockType		      Display
      Name		      "Display1"
      Ports		      [1]
      Position		      [715, 84, 805, 116]
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Rate Transition"
      Ports		      [1, 1]
      Position		      [145, 189, 200, 231]
      SourceBlock	      "simulink/Signal\nAttributes/Rate Transition"
      SourceType	      "Rate_Transition"
      DataIntegrity	      on
      DeterministicTransfer   on
      TransitionType	      "Slow to fast"
      InitCond		      "0"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay"
      Position		      [100, 155, 130, 185]
      Orientation	      "down"
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      OffOutputValue	      "-1"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [2]
      Position		      [460, 76, 490, 109]
      Location		      [601, 423, 925, 662]
      Open		      on
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      YMin		      "-2~-2"
      YMax		      "2~2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [220, 160, 240, 180]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [470, 160, 490, 180]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [2, 1]
      Position		      [675, 90, 695, 110]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Reference
      Name		      "Variance"
      Ports		      [1, 1]
      Position		      [355, 23, 430, 57]
      SourceBlock	      "dspstat3/Variance"
      SourceType	      "Variance"
      run		      on
      reset_popup	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Variance1"
      Ports		      [1, 1]
      Position		      [515, 153, 590, 187]
      SourceBlock	      "dspstat3/Variance"
      SourceType	      "Variance"
      run		      on
      reset_popup	      "None"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold"
      Position		      [120, 26, 155, 64]
      SampleTime	      "0.001"
    }
    Block {
      BlockType		      Reference
      Name		      "dB Conversion"
      Ports		      [1, 1]
      Position		      [610, 148, 660, 192]
      FontSize		      10
      SourceBlock	      "dspmathops/dB Conversion"
      SourceType	      "dB Conversion"
      dBtype		      "dB"
      intype		      "Power"
      R			      "1"
      fuzz		      on
    }
    Block {
      BlockType		      Reference
      Name		      "dB Conversion1"
      Ports		      [1, 1]
      Position		      [575, 79, 620, 121]
      FontSize		      10
      SourceBlock	      "dspmathops/dB Conversion"
      SourceType	      "dB Conversion"
      dBtype		      "dB"
      intype		      "Power"
      R			      "1"
      fuzz		      on
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	Points			[0, -70]
	DstBlock		"Scope"
	DstPort			2
      }
      Branch {
	DstBlock		"Sum1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Bernoulli Binary\nGenerator"
      SrcPort		      1
      Points		      [15, 0]
      DstBlock		      "Relay"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "Zero-Order\nHold"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	DstBlock		"AWGN\nChannel"
	DstPort			1
      }
      Branch {
	Points			[0, 55; 205, 0]
	DstBlock		"Sum1"
	DstPort			2
      }
      Branch {
	Points			[0, -85]
	Branch {
	  Points		  [0, -45]
	  DstBlock		  "Variance"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Scope"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Relay"
      SrcPort		      1
      Points		      [0, 20]
      DstBlock		      "Rate Transition"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Variance"
      SrcPort		      1
      Points		      [100, 0]
      Branch {
	DstBlock		"Display"
	DstPort			1
      }
      Branch {
	Points			[0, 60]
	DstBlock		"dB Conversion1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Rate Transition"
      SrcPort		      1
      Points		      [25, 0]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Zero-Order\nHold"
      SrcPort		      1
      Points		      [10, 0; 0, 125]
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      DstBlock		      "Variance1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Variance1"
      SrcPort		      1
      DstBlock		      "dB Conversion"
      DstPort		      1
    }
    Line {
      SrcBlock		      "dB Conversion1"
      SrcPort		      1
      DstBlock		      "Sum2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "dB Conversion"
      SrcPort		      1
      Points		      [20, 0]
      DstBlock		      "Sum2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      DstBlock		      "Display1"
      DstPort		      1
    }
    Annotation {
      Name		      "检测SNR"
      Position		      [761, 144]
    }
    Annotation {
      Name		      "AWGN信道测试模型\n文件名:ch3example18.mdl"
      Position		      [365, 254]
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "100bps"
      Position		      [48, 167]
    }
    Annotation {
      Name		      "采样时间0.001"
      Position		      [197, 34]
    }
    Annotation {
      Name		      "采样时间0.01"
      Position		      [52, 184]
    }
    Annotation {
      Name		      "单双极性变换"
      Position		      [95, 221]
    }
    Annotation {
      Name		      "升速率"
      Position		      [225, 224]
    }
    Annotation {
      Name		      "信号功率检测"
      Position		      [479, 27]
    }
    Annotation {
      Name		      "噪声功率检测"
      Position		      [549, 212]
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -