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

📄 adeq_lms.mdl

📁 数字信号处理(机械工业出版社)的源码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	Location		[4, 117, 359, 283]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 43, 55, 57]
	}
	Block {
	  BlockType		  Reference
	  Name			  "Digital Filter"
	  Ports			  [1, 1]
	  Position		  [75, 28, 145, 72]
	  SourceBlock		  "dsparch4/Digital Filter"
	  SourceType		  "Digital Filter"
	  TypePopup		  "FIR (all zeros)"
	  IIRFiltStruct		  "Direct form II transposed"
	  AllPoleFiltStruct	  "Direct form"
	  FIRFiltStruct		  "Direct form"
	  CoeffSource		  "Specify via dialog"
	  NumCoeffs		  "b"
	  DenCoeffs		  "[1 0.1]"
	  BiQuadCoeffs		  "[1 0.3 0.4 1 0.1 0.2]"
	  LatticeCoeffs		  "[0.2 0.4]"
	  denIgnore		  "on"
	  FiltPerSampPopup	  "One filter per frame"
	  IC			  "0"
	  ICnum			  "0"
	  ICden			  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [175, 43, 205, 57]
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Digital Filter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Digital Filter"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Equalizer\nResponse"
      Ports		      [1]
      Position		      [555, 170, 590, 220]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      off
      BufferSize	      "128"
      Overlap		      "64"
      inpFftLenInherit	      on
      FFTlength		      "128"
      numAvg		      "2"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      off
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[29 124 450 360]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-12"
      YMax		      "8"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Filter \nTaps"
      Ports		      [1]
      Position		      [555, 260, 590, 310]
      SourceBlock	      "dspsnks4/Vector\nScope"
      SourceType	      "Vector Scope"
      ScopeProperties	      on
      Domain		      "User-defined"
      HorizSpan		      "1"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      off
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[491 123 450 360]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      off
      XIncr		      "1"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-1"
      YMax		      "2"
      YLabel		      "Equalizer Coefficients"
      LineProperties	      off
      LineMarkers	      "."
    }
    Block {
      BlockType		      Reference
      Name		      "Frame Status\nConversion"
      Ports		      [1, 1]
      Position		      [445, 265, 500, 305]
      ShowName		      off
      SourceBlock	      "dspsigattribs/Frame Status\nConversion"
      SourceType	      "Frame Status Conversion"
      growRefPort	      off
      outframe		      "Frame-based"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay"
      Ports		      [1, 1]
      Position		      [170, 87, 215, 123]
      SourceBlock	      "dspsigops/Integer Delay"
      SourceType	      "Integer Delay"
      delay		      "6"
      ic		      "0"
      reset_popup	      "None"
      Port {
	PortNumber		1
	Name			"Signal"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "LMS\nAdaptive Filter"
      Ports		      [2, 2]
      Position		      [305, 151, 390, 209]
      SourceBlock	      "dspadpt3/LMS\nAdaptive Filter"
      SourceType	      "LMS Adaptive Filter"
      n			      "11"
      mu		      ".5"
      ic		      "0.0"
      leakage		      "1.0"
      normalized	      on
      Adapt		      off
      RstPort		      "None"
    }
    Block {
      BlockType		      Math
      Name		      "Math\nfunctions"
      Ports		      [1, 1]
      Position		      [455, 90, 485, 120]
      ShowName		      off
      Operator		      "square"
      Port {
	PortNumber		1
	Name			"Squared\nerror"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Noise"
      Ports		      [0, 1]
      Position		      [175, 220, 205, 250]
      SourceBlock	      "simulink/Sources/Band-Limited\nWhite Noise"
      SourceType	      "Continuous White Noise."
      Cov		      ".002e-5"
      Ts		      "1e-5"
      seed		      "[23341]"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Scope
      Name		      "Results"
      Ports		      [3]
      Position		      [560, 50, 590, 100]
      ShowName		      off
      Location		      [6, 66, 545, 474]
      Open		      on
      NumInputPorts	      "3"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      TimeRange		      "0.005"
      YMin		      "-2~0~0"
      YMax		      "2~2~1"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Signum
      Name		      "Sign"
      Position		      [105, 149, 140, 181]
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [235, 150, 265, 180]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      Port {
	PortNumber		1
	Name			"Signal+Noise"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [380, 90, 410, 120]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
    }
    Line {
      SrcBlock		      "LMS\nAdaptive Filter"
      SrcPort		      2
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"Equalizer\nResponse"
	DstPort			1
      }
      Branch {
	Points			[0, 90]
	DstBlock		"Frame Status\nConversion"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Dispersive\nChannel"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "LMS\nAdaptive Filter"
      SrcPort		      1
      DstBlock		      "Sum1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Band-Limited\nWhite Noise"
      SrcPort		      1
      DstBlock		      "Sign"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Noise"
      SrcPort		      1
      Points		      [40, 0]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sign"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	Points			[0, -60]
	DstBlock		"Integer Delay"
	DstPort			1
      }
      Branch {
	DstBlock		"Dispersive\nChannel"
	DstPort			1
      }
    }
    Line {
      Labels		      [2, 0]
      SrcBlock		      "Sum1"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	DstBlock		"Math\nfunctions"
	DstPort			1
      }
      Branch {
	Points			[0, 30; -135, 0]
	DstBlock		"LMS\nAdaptive Filter"
	DstPort			2
      }
    }
    Line {
      Name		      "Squared\nerror"
      Labels		      [1, 1]
      SrcBlock		      "Math\nfunctions"
      SrcPort		      1
      Points		      [55, 0]
      DstBlock		      "Results"
      DstPort		      3
    }
    Line {
      Name		      "Signal+Noise"
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	Labels			[-1, 1]
	Points			[0, -105]
	DstBlock		"Results"
	DstPort			1
      }
      Branch {
	DstBlock		"LMS\nAdaptive Filter"
	DstPort			1
      }
    }
    Line {
      Name		      "Signal"
      Labels		      [0, 0]
      SrcBlock		      "Integer Delay"
      SrcPort		      1
      Points		      [0, 0; 120, 0]
      Branch {
	DstBlock		"Sum1"
	DstPort			1
      }
      Branch {
	Labels			[-1, 1]
	Points			[0, -30]
	DstBlock		"Results"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Frame Status\nConversion"
      SrcPort		      1
      DstBlock		      "Filter \nTaps"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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