spreadspectrum1.mdl

来自「一个matlab扩频通信系统simulink仿真系统从发送端到接收到各个部分」· MDL 代码 · 共 1,245 行 · 第 1/3 页

MDL
1,245
字号
      BufferSize	      "1024"
      Overlap		      "512"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "2"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[241 112 560 420]"
      AxisProperties	      on
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-11.9192364569253"
      YMax		      "21.5342414862167"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Block {
      BlockType		      Reference
      Name		      "ma Spectrum"
      Ports		      [1]
      Position		      [435, 485, 470, 535]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "512"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "2"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[265 92 560 420]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-53.8092835642258"
      YMax		      "13.6534311554874"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Block {
      BlockType		      Reference
      Name		      "masin Spectrum"
      Ports		      [1]
      Position		      [615, 30, 650, 80]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      off
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "512"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "2"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[232 258 560 420]"
      AxisProperties	      on
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-50.3543709370126"
      YMax		      "13.9620149099222"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Block {
      BlockType		      Reference
      Name		      "nose Spectrum"
      Ports		      [1]
      Position		      [495, 400, 530, 450]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "512"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "2"
      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		      "-17.7010929147395"
      YMax		      "5.69768139216348"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Line {
      SrcBlock		      "Uniform Random\nNumber"
      SrcPort		      1
      DstBlock		      "Sign"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sign"
      SrcPort		      1
      DstBlock		      "Look-Up\nTable"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Look-Up\nTable"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	Points			[40, 0]
	Branch {
	  DstBlock		  "Scope1"
	  DstPort		  1
	}
	Branch {
	  Points		  [-30, 0; 0, 80]
	  DstBlock		  "Product"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, -90]
	DstBlock		"Zero-Order\nHold1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	Points			[0, -95]
	DstBlock		"Scope2"
	DstPort			1
      }
      Branch {
	Points			[10, 0]
	Branch {
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 280]
	  DstBlock		  "Zero-Order\nHold2"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [30, 0; 25, 0]
      Branch {
	Points			[-45, 0]
	DstBlock		"Scope3"
	DstPort			1
      }
      Branch {
	Points			[0, -50]
	DstBlock		"Product1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Product1"
      SrcPort		      1
      Points		      [5, 0; 0, -10]
      Branch {
	Points			[30, 0]
	DstBlock		"Sum"
	DstPort			1
      }
      Branch {
	Points			[0, -85; 25, 0]
	Branch {
	  DstBlock		  "Scope4"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -90]
	  DstBlock		  "Zero-Order\nHold3"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Sine Wave1"
      SrcPort		      1
      Points		      [45, 0; 0, -60]
      DstBlock		      "Product2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product2"
      SrcPort		      1
      Points		      [0, 0; 0, 25]
      Branch {
	Points			[10, 0]
	DstBlock		"Scope6"
	DstPort			1
      }
      Branch {
	Points			[0, 15]
	Branch {
	  Points		  [0, 5; -65, 0]
	  DstBlock		  "Product3"
	  DstPort		  1
	}
	Branch {
	  Points		  [65, 0; 0, -150]
	  DstBlock		  "Zero-Order\nHold6"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Product3"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, 90]
	DstBlock		"Zero-Order\nHold7"
	DstPort			1
      }
      Branch {
	Points			[0, -15]
	DstBlock		"Analog\nFilter Design"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sign1"
      SrcPort		      1
      DstBlock		      "Scope7"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PN Sequence\nGenerator"
      SrcPort		      1
      Points		      [0, 10]
      Branch {
	DstBlock		"Look-Up\nTable1"
	DstPort			1
      }
      Branch {
	Points			[0, 210]
	DstBlock		"Zero-Order\nHold"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Look-Up\nTable1"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	Points			[15, 0]
	Branch {
	  Points		  [0, 65; 325, 0; 0, -60]
	  DstBlock		  "Product3"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, -80]
	  DstBlock		  "Product"
	  DstPort		  2
	}
      }
      Branch {
	Points			[0, 115]
	DstBlock		"Scope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Random\nNumber"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	Points			[15, 0; 0, -70]
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	Points			[-15, 0; 0, 115]
	DstBlock		"Zero-Order\nHold4"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[10, 0; 0, -5; 10, 0]
	Branch {
	  DstBlock		  "Product2"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -85]
	  DstBlock		  "Scope5"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 155]
	DstBlock		"Zero-Order\nHold5"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Zero-Order\nHold"
      SrcPort		      1
      DstBlock		      "PN Spectrum\n"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold2"
      SrcPort		      1
      DstBlock		      "ma Spectrum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold3"
      SrcPort		      1
      DstBlock		      "masin Spectrum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold4"
      SrcPort		      1
      DstBlock		      "nose Spectrum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold1"
      SrcPort		      1
      DstBlock		      "base Spectrum\n"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold5"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "addnose Spectrum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold6"
      SrcPort		      1
      Points		      [0, -35]
      DstBlock		      "demasin Spectrum1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold7"
      SrcPort		      1
      Points		      [0, 5]
      DstBlock		      "demapn Spectrum2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Analog\nFilter Design"
      SrcPort		      1
      DstBlock		      "Sign1"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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