yangming2.mdl

来自「这是一个用simulink编程」· MDL 代码 · 共 1,761 行 · 第 1/5 页

MDL
1,761
字号
      Position		      [520, 160, 555, 210]
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag6"
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ShowPortLabels	      off
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "20"
      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		      "dB"
      YMin		      "-163.257275905242"
      YMax		      "-3.14203637440672"
      YLabel		      "Magnitude-squared, dB"
      LineProperties	      off
      LineColors	      "[1 0 0]"
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope2"
      Ports		      [1]
      Position		      [640, 150, 675, 200]
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag7"
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ShowPortLabels	      off
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "20"
      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		      "dB"
      YMin		      "-163.196970206888"
      YMax		      "-8.4593142695656"
      YLabel		      "Magnitude-squared, dB"
      LineProperties	      off
      LineColors	      "[1 0 0]"
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope3"
      Ports		      [1]
      Position		      [925, 245, 960, 295]
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag8"
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ShowPortLabels	      off
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "20"
      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		      "dB"
      YMin		      "-144.935320251653"
      YMax		      "-10.1758306169093"
      YLabel		      "Magnitude-squared, dB"
      LineProperties	      off
      LineColors	      "[1 0 0]"
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum of\nElements"
      Ports		      [2, 1]
      Position		      [560, 247, 590, 278]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      SaturateOnIntegerOverflow	off
      SampleTime	      "1/24000"
    }
    Block {
      BlockType		      Reference
      Name		      "Upsample"
      Ports		      [1, 1]
      Position		      [330, 238, 365, 272]
      SourceBlock	      "dspsigops/Upsample"
      SourceType	      "Upsample"
      N			      "15"
      phase		      "0"
      ic		      "0"
      mode		      "Maintain input frame size"
    }
    Block {
      BlockType		      Reference
      Name		      "Upsample1"
      Ports		      [1, 1]
      Position		      [330, 143, 365, 177]
      SourceBlock	      "dspsigops/Upsample"
      SourceType	      "Upsample"
      N			      "15"
      phase		      "0"
      ic		      "0"
      mode		      "Maintain input frame size"
    }
    Line {
      SrcBlock		      "Sine Wave2"
      SrcPort		      1
      Points		      [80, 0]
      DstBlock		      "Product2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sine Wave1"
      SrcPort		      1
      Points		      [0, -5]
      DstBlock		      "Product3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      Points		      [35, 0; 0, 75]
      Branch {
	Points			[0, 30]
	DstBlock		"Product2"
	DstPort			1
      }
      Branch {
	Points			[-45, 0; 0, 125]
	DstBlock		"Product3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Product2"
      SrcPort		      1
      DstBlock		      "Digital\nFilter Design3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product3"
      SrcPort		      1
      DstBlock		      "Digital\nFilter Design4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Upsample1"
      SrcPort		      1
      Points		      [0, 10]
      DstBlock		      "Digital\nFilter Design1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      1
      Points		      [0, -5]
      DstBlock		      "Upsample1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      2
      Points		      [10, 0; 0, 75]
      DstBlock		      "Upsample"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Upsample"
      SrcPort		      1
      DstBlock		      "Digital\nFilter Design2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Digital\nFilter Design1"
      SrcPort		      1
      Points		      [0, 15]
      Branch {
	Points			[0, 180; -200, 0; 0, 30]
	DstBlock		"Product"
	DstPort			1
      }
      Branch {
	DstBlock		"Spectrum\nScope1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [10, 0; 0, -25]
      DstBlock		      "Product"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Digital\nFilter Design2"
      SrcPort		      1
      Points		      [0, 50; -275, 0; 0, 210]
      DstBlock		      "Product1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sine Wave4"
      SrcPort		      1
      Points		      [35, 0; 0, -30]
      DstBlock		      "Product1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      Points		      [120, 0; 0, -150]
      DstBlock		      "Sum of\nElements"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product1"
      SrcPort		      1
      Points		      [150, 0; 0, -255]
      DstBlock		      "Sum of\nElements"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum of\nElements"
      SrcPort		      1
      Points		      [15, 0; 0, -90]
      Branch {
	DstBlock		"AWGN\nChannel"
	DstPort			1
      }
      Branch {
	DstBlock		"Spectrum\nScope2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Digital\nFilter Design3"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"Downsample"
	DstPort			1
      }
      Branch {
	Points			[0, 45]
	DstBlock		"Spectrum\nScope3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Digital\nFilter Design4"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "Downsample1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Random Integer\nGenerator"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[0, 280; 805, 0; 0, -5]
	Branch {
	  Points		  [0, -215]
	  DstBlock		  "Error Rate\nCalculation"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, 10]
	  DstBlock		  "Scope"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, -55; -100, 0]
	DstBlock		"Rectangular QAM\nModulator\nBaseband"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Rectangular QAM\nModulator\nBaseband"
      SrcPort		      1
      Points		      [20, 0; 0, 30; 10, 0; 0, 10]
      Branch {
	Points			[0, -45]
	DstBlock		"Discrete-Time\nScatter Plot\nScope"
	DstPort			1
      }
      Branch {
	Points			[0, 25; -55, 0; 0, 50]
	DstBlock		"Raised Cosine\nTransmit Filter"
	DstPort			1

⌨️ 快捷键说明

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