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

📄 nakagamisim1.mdl

📁 这是用matlab中的simulink仿真的Nakagami信道
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "Nakagamisim1"
    Location		    [2, 78, 798, 545]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      ComplexToMagnitudeAngle
      Name		      "Complex to\nMagnitude-Angle"
      Ports		      [1, 2]
      Position		      [270, 233, 300, 262]
      Output		      "Magnitude and angle"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant"
      Position		      [180, 145, 210, 175]
      Value		      "6"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant1"
      Position		      [260, 130, 290, 160]
      Value		      "10"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant2"
      Position		      [65, 235, 95, 265]
      Value		      "1+eps*j"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [415, 110, 475, 140]
      Expr		      "10^(u/20)"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn1"
      Position		      [155, 55, 215, 85]
      Expr		      "8.4932*exp(-u^2/4*36)"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn2"
      Position		      [330, 225, 390, 255]
      Expr		      "1-exp(-u^2/2)"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn3"
      Position		      [420, 225, 480, 255]
      Expr		      "-log(1-u)*(1+(-0.0828-0.0828*(-log(1-u))-150881"
"9*(-log(1-u))^2)/(1+63.1955*(-log(1-u))+23.2981*(-log(1-u))^2))"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn4"
      Position		      [630, 120, 690, 150]
      Expr		      "10*log10(u)"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [510, 225, 540, 255]
      Gain		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Gaussian Noise\nGenerator"
      Ports		      [0, 1]
      Position		      [55, 48, 135, 92]
      FontName		      "Arial"
      SourceBlock	      "commnoisgen2/Gaussian Noise\nGenerator"
      SourceType	      "Gaussian Noise Generator"
      m			      "0"
      d			      "1"
      s			      "41"
      Ts		      "0.00001"
      frameBased	      off
      sampPerFrame	      "1"
      orient		      on
    }
    Block {
      BlockType		      Reference
      Name		      "IFFT"
      Ports		      [1, 1]
      Position		      [145, 349, 185, 381]
      SourceBlock	      "dspxfrm3/IFFT"
      SourceType	      "IFFT"
      CompMethod	      "Table lookup"
      TableOpt		      "Speed"
      BitRevOrder	      off
      cs_in		      off
      SkipNorm		      off
      mode		      "Real"
    }
    Block {
      BlockType		      Reference
      Name		      "Magnitude\nFFT"
      Ports		      [1, 1]
      Position		      [575, 109, 605, 161]
      SourceBlock	      "dspspect3/Magnitude\nFFT"
      SourceType	      "Magnitude FFT"
      mag_or_magsq	      "Magnitude"
      fftLenInherit	      off
      fftsize		      "256"
    }
    Block {
      BlockType		      MagnitudeAngleToComplex
      Name		      "Magnitude-Angle\nto Complex"
      Ports		      [2, 1]
      Position		      [570, 228, 600, 277]
      Input		      "Magnitude and angle"
    }
    Block {
      BlockType		      Reference
      Name		      "Multipath Rayleigh\nFading Channel"
      Ports		      [1, 1]
      Position		      [135, 228, 215, 272]
      SourceBlock	      "commchan2/Multipath Rayleigh\nFading Channel"
      SourceType	      "Multipath Rayleigh Fading Channel"
      Fd		      "40"
      simTs		      "1e-6"
      delayVec		      "[0 2e-6]"
      gainVecdB		      "[0 -6]"
      normGain		      on
      Seed		      "73"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [260, 61, 305, 94]
      InputSameDT	      off
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Ports		      [2, 1]
      Position		      [510, 116, 555, 149]
      InputSameDT	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [665, 224, 695, 256]
      Location		      [208, 226, 532, 466]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "500000"
      SampleInput	      on
      SampleTime	      "0.00001"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope"
      Ports		      [1]
      Position		      [395, 30, 430, 80]
      NamePlacement	      "alternate"
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      on
      FFTlength		      "1024"
      numAvg		      "10"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "Magnitude"
      YMin		      "-2"
      YMax		      "25"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
      LineStyles	      "-"
      LineMarkers	      "*"
      LineColors	      "[0 1 0]"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [340, 97, 370, 153]
      ShowName		      off
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Line {
      SrcBlock		      "Gaussian Noise\nGenerator"
      SrcPort		      1
      DstBlock		      "Fcn1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn1"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Product"
	DstPort			1
      }
      Branch {
	Points			[0, -15]
	DstBlock		"Spectrum\nScope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      Points		      [15, 0; 0, -75]
      DstBlock		      "Product"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      Points		      [10, 0; 0, 45]
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant1"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant2"
      SrcPort		      1
      DstBlock		      "Multipath Rayleigh\nFading Channel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Multipath Rayleigh\nFading Channel"
      SrcPort		      1
      DstBlock		      "Complex to\nMagnitude-Angle"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nMagnitude-Angle"
      SrcPort		      1
      DstBlock		      "Fcn2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn2"
      SrcPort		      1
      DstBlock		      "Fcn3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn3"
      SrcPort		      1
      DstBlock		      "Gain"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Magnitude-Angle\nto Complex"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nMagnitude-Angle"
      SrcPort		      2
      Points		      [20, 0; 0, 20; 215, 0; 0, -10]
      DstBlock		      "Magnitude-Angle\nto Complex"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      DstBlock		      "Product1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Magnitude-Angle\nto Complex"
      SrcPort		      1
      Points		      [0, -55; -110, 0]
      DstBlock		      "Product1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product1"
      SrcPort		      1
      DstBlock		      "Magnitude\nFFT"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn4"
      SrcPort		      1
      Points		      [10, 0; 0, 75; -60, 0; 0, 30]
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Magnitude\nFFT"
      SrcPort		      1
      DstBlock		      "Fcn4"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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