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

📄 ordinarily_ofdm_awgn_ber.mdl

📁 利用MATLAB实现OFDM系统中AWGN信道
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "DEQAM2"
      Ports		      [1, 1]
      Position		      [295, 242, 335, 298]
      Orientation	      "left"
      DropShadow	      on
      ShowName		      off
      FontName		      "Arial"
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskPromptString	      "Modulate Mode :"
      MaskStyleString	      "popup(QPSK|16QAM|64QAM)"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "mode=&1;"
      MaskInitialization      "switch (mode)\n	case 'QPSK'\n       M = "
"4;\n    case '16QAM'\n       M = 16;\n    case '64QAM'\n       M = 64;\n    o"
"therwise\n       error('This is impossible')\n end\n"
      MaskDisplay	      "disp('DMOD')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "16QAM"
      System {
	Name			"DEQAM2"
	Location		[28, 686, 1040, 1325]
	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, 48, 55, 62]
	}
	Block {
	  BlockType		  Reference
	  Name			  "Rectangular QAM\nDemodulator\nBaseband"
	  Ports			  [1, 1]
	  Position		  [125, 29, 200, 81]
	  SourceBlock		  "commdigbbndam2/Rectangular QAM\nDemodulator"
"\nBaseband"
	  SourceType		  "Rectangular QAM Demodulator Baseband"
	  M			  "M"
	  OutType		  "Bit"
	  Dec			  "Gray"
	  PowType		  "Average Power"
	  MinDist		  "2"
	  AvgPow		  "1"
	  PeakPow		  "1"
	  Ph			  "pi/4"
	  numSamp		  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [275, 48, 305, 62]
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Rectangular QAM\nDemodulator\nBaseband"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Rectangular QAM\nDemodulator\nBaseband"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Display
      Name		      "Display2"
      Ports		      [1]
      Position		      [20, 226, 110, 294]
      Orientation	      "left"
      ShowName		      off
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation1"
      Ports		      [2, 1]
      Position		      [125, 230, 160, 285]
      Orientation	      "left"
      DropShadow	      on
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Arial"
      FontWeight	      "bold"
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec4"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      SubSystem
      Name		      "OFDM PAPR \nQAM lx1"
      Ports		      [1, 1]
      Position		      [195, 49, 235, 111]
      DropShadow	      on
      ShowName		      off
      FontName		      "Arial"
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskType		      "OFDM PAPR QAM_1"
      MaskDescription	      "Rectangle Constellation\nAverage power = 1 (Wat"
"ts)\nInput:int"
      MaskPromptString	      "Modulate Mode :"
      MaskStyleString	      "popup(QPSK|16QAM|64QAM)"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "mode=&1;"
      MaskInitialization      "switch (mode)\n	case 'QPSK'\n       M = "
"4;\n    case '16QAM'\n       M = 16;\n    case '64QAM'\n       M = 64;\n    o"
"therwise\n       error('This is impossible')\n end\n"
      MaskDisplay	      "disp('MOD')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "16QAM"
      System {
	Name			"OFDM PAPR \nQAM lx1"
	Location		[484, 374, 786, 603]
	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, 48, 55, 62]
	}
	Block {
	  BlockType		  Reference
	  Name			  "Rectangular QAM\nModulator\nBaseband"
	  Ports			  [1, 1]
	  Position		  [90, 28, 155, 82]
	  ShowName		  off
	  SourceBlock		  "commdigbbndam2/Rectangular QAM\nModulator\n"
"Baseband"
	  SourceType		  "Rectangular QAM Modulator Baseband"
	  M			  "M"
	  InType		  "Bit"
	  Enc			  "Gray"
	  PowType		  "Average Power"
	  MinDist		  "2"
	  AvgPow		  "1"
	  PeakPow		  "1"
	  Ph			  "pi/4"
	  numSamp		  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [180, 48, 210, 62]
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Rectangular QAM\nModulator\nBaseband"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Rectangular QAM\nModulator\nBaseband"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "PAPR2"
      Ports		      [1, 1]
      Position		      [740, 17, 860, 53]
      TreatAsAtomicUnit	      off
      MaskPromptString	      "N(子载波个数)|Symbol Time:|PAPR_Th0(dB)|D:(dB)|"
"Average Power:|Total_Number"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "|||||"
      MaskEnableString	      "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskVariables	      "N=@1;T_Symbol=@2;Th0=@3;D=@4;Power=@5;Total_Num"
"ber=@6;"
      MaskDisplay	      "disp('PAPR统计')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1024|0.1|0|0.5|1|1e7"
      System {
	Name			"PAPR2"
	Location		[23, 362, 1008, 767]
	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, 25, 55, 40]
	  Orientation		  "down"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "10log(u)4"
	  Ports			  [1, 1]
	  Position		  [285, 52, 325, 78]
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MaskType		  "Convert to dB"
	  MaskDisplay		  "disp('10log(u)')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "10log(u)4"
	    Location		    [271, 268, 703, 531]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [20, 28, 50, 42]
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [195, 67, 215, 93]
	      ShowName		      off
	      Value		      "10"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [45, 49, 65, 71]
	      ShowName		      off
	      Value		      "0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant2"
	      Position		      [65, 82, 115, 108]
	      ShowName		      off
	      Value		      "1000000"
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction"
	      Ports		      [1, 1]
	      Position		      [185, 30, 215, 60]
	      ShowName		      off
	      Operator		      "log10"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product1"
	      Ports		      [2, 1]
	      Position		      [240, 39, 270, 66]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [85, 27, 115, 58]
	      ShowName		      off
	      Operator		      "~="
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch"
	      Position		      [135, 30, 165, 60]
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [295, 48, 325, 62]
	    }
	    Line {
	      SrcBlock		      "Switch"
	      SrcPort		      1
	      DstBlock		      "Math\nFunction"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant2"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [0, 0; 10, 0]
	      Branch {
		Points			[0, -30; 55, 0]
		DstBlock		"Switch"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Math\nFunction"
	      SrcPort		      1
	      DstBlock		      "Product1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [5, 0]
	      DstBlock		      "Product1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Annotation {
	      Name		      "if Input=0, Output==60(dB)"
	      Position		      [182, 134]
	      ForegroundColor	      "red"
	    }
	  }
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs4"
	  Position		  [180, 50, 200, 80]
	  ShowName		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "CDF of PAPR lx"
	  Ports			  [1, 1]
	  Position		  [355, 47, 430, 83]
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MaskType		  "OFDM Calculate CDF of PAPR lx"
	  MaskDescription	  "Calculate the CDF of PAPR from Th0  to  Th0"
"+(9*D) dB"
	  MaskPromptString	  "PAPR Th0(dB):|D(dB):|OFDM Symbol Timing:|St"
"op Time:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "PAPR_Th0=@1;D=@2;T_symbol=@3;T_stop=@4;"
	  MaskDisplay		  "disp('CDF of PAPR\\nlx')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "Th0|D|T_Symbol*N|T_Symbol*N*1e8"
	  System {
	    Name		    "CDF of PAPR lx"
	    Location		    [30, 412, 1042, 1124]
	    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, 178, 55, 192]
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Compare_lx"
	      Ports		      [1, 1, 0, 1]
	      Position		      [90, 156, 135, 214]
	      ShowName		      off
	      TreatAsAtomicUnit	      on
	      MaskType		      "OFDM PAPR Compare_lx"
	      MaskPromptString	      "PAPR_Th(dB)"
	      MaskStyleString	      "edit"
	      MaskTunableValueString  "on"
	      MaskEnableString	      "on"
	      MaskVisibilityString    "on"
	      MaskToolTipString	      "on"
	      MaskVariables	      "Th=@1;"
	      MaskDisplay	      "disp('Compare\\nlx')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      MaskValueString	      "PAPR_Th0"
	      System {
		Name			"Compare_lx"
		Location		[565, 225, 973, 461]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [85, 88, 115, 102]
		}
		Block {
		  BlockType		  TriggerPort
		  Name			  "Trigger"
		  Ports			  []
		  Position		  [70, 15, 90, 35]
		  TriggerType		  "either"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [65, 128, 125, 152]
		  ShowName		  off
		  Value			  "Th"
		}
		Block {
		  BlockType		  Constant

⌨️ 快捷键说明

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