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

📄 digitalfilterdesign_tut.mdl

📁 数字信号处理(机械工业出版社)的源码
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      UserData		      "DataTag0"
      SourceBlock	      "dsparch4/Digital\nFilter Design"
      SourceType	      "Digital Filter Design"
    }
    Block {
      BlockType		      Reference
      Name		      "Digital\nFilter Design2"
      Ports		      [1, 1]
      Position		      [75, 122, 140, 178]
      UserDataPersistent      on
      UserData		      "DataTag1"
      SourceBlock	      "dsparch4/Digital\nFilter Design"
      SourceType	      "Digital Filter Design"
    }
    Block {
      BlockType		      Reference
      Name		      "Matrix\nConcatenation"
      Ports		      [3, 1]
      Position		      [460, 222, 515, 298]
      SourceBlock	      "simulink/Math\nOperations/Matrix\nConcatenation"
      SourceType	      "Matrix Concatenation"
      numInports	      "3"
      catMethod		      "Horizontal"
    }
    Block {
      BlockType		      Reference
      Name		      "Random\nSource"
      Ports		      [0, 1]
      Position		      [20, 131, 55, 169]
      UserDataPersistent      on
      UserData		      "DataTag2"
      Diagnostics	      "AllowInheritedTsInSrc"
      SourceBlock	      "dspsrcs4/Random\nSource"
      SourceType	      "Random Source"
      SrcType		      "Uniform"
      NormMethod	      "Ziggurat"
      CltLength		      "12"
      Min		      "0"
      Max		      "4"
      Mean		      "0"
      Var		      "1"
      RepMode		      "Not repeatable"
      Seed		      "1"
      Inherit		      off
      SampMode		      "Discrete"
      SampTime		      "1/1000"
      SampFrame		      "50"
      DataType		      "Double"
      OutComplex	      "Real"
    }
    Block {
      BlockType		      Reference
      Name		      "Sine Wave"
      Ports		      [0, 1]
      Position		      [15, 248, 60, 292]
      SourceBlock	      "dspsrcs4/Sine Wave"
      SourceType	      "Sine Wave"
      Amplitude		      "1"
      Frequency		      "75"
      Phase		      "0"
      SampleMode	      "Discrete"
      OutComplex	      "Real"
      CompMethod	      "Trigonometric fcn"
      TableSize		      "Speed"
      SampleTime	      "1/1000"
      SamplesPerFrame	      "50"
      additionalParams	      off
      dataType		      "double"
      wordLen		      "16"
      udDataType	      "sfix(16)"
      fracBitsMode	      "Best precision"
      numFracBits	      "14"
      ResetState	      "Restart at time zero"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [190, 230, 205, 285]
      ShowName		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Vector\nScope"
      Ports		      [1]
      Position		      [535, 235, 570, 285]
      SourceBlock	      "dspsnks4/Vector\nScope"
      SourceType	      "Vector Scope"
      ScopeProperties	      on
      Domain		      "Time"
      HorizSpan		      "1"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      on
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[386 364 548 328]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1"
      XLabel		      "Time"
      YUnits		      "dB"
      YMin		      "-10"
      YMax		      "10"
      YLabel		      "Amplitude"
      LineProperties	      off
      LineStyles	      "-||None"
      LineMarkers	      "None|diamond|*"
      LineColors	      "|[1 0 0]|[0 0 1]"
    }
    Line {
      SrcBlock		      "Random\nSource"
      SrcPort		      1
      DstBlock		      "Digital\nFilter Design2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [0, 0; 95, 0]
      Branch {
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	Points			[0, 50; 155, 0; 0, -35]
	DstBlock		"Matrix\nConcatenation"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	Points			[0, -50; 100, 0; 0, 25]
	DstBlock		"Matrix\nConcatenation"
	DstPort			1
      }
      Branch {
	DstBlock		"Digital\nFilter Design"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Matrix\nConcatenation"
      SrcPort		      1
      DstBlock		      "Vector\nScope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Digital\nFilter Design"
      SrcPort		      1
      DstBlock		      "Matrix\nConcatenation"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Digital\nFilter Design2"
      SrcPort		      1
      Points		      [15, 0; 0, 95]
      DstBlock		      "Sum"
      DstPort		      1
    }
    Annotation {
      Name		      "High-Frequency Noise"
      Position		      [76, 91]
      ForegroundColor	      "blue"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Low-Frequency Signal"
      Position		      [76, 241]
      ForegroundColor	      "blue"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Lowpass Filter"
      Position		      [268, 224]
      FontName		      "Arial"
      FontSize		      11
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "                                             \n"
"\n\n\n\n\n\n                            "
      Position		      [84, 154]
      ForegroundColor	      "green"
      BackgroundColor	      "yellow"
    }
    Annotation {
      Name		      "Highpass Filter"
      Position		      [107, 116]
      BackgroundColor	      "yellow"
      FontName		      "Arial"
      FontSize		      11
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Noisy sine wave"
      Position		      [371, 222]
    }
    Annotation {
      Name		      "Filtered noisy sine wave"
      Position		      [392, 249]
    }
    Annotation {
      Name		      "Original sine wave"
      Position		      [379, 277]
    }
    Annotation {
      Name		      "Filtering with the \nDigital Filter Design Bloc"
"k"
      Position		      [8, 29]
      HorizontalAlignment     "left"
      ForegroundColor	      "blue"
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      16
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "In this example, a lowpass filter filters out h"
"igh-frequency \nnoise from a noisy sine wave.  The high-frequency noise is\no"
"utput by a highpass filter excited by a uniform random signal.\n\nDigital Fil"
"ter Design blocks implement both the lowpass and highpass \nfilters, which we"
"re designed within the Digital Filter Design blocks. \nThe Vector Scope's dis"
"play shows the original sine wave, \nthe noisy sine wave, and the filtered no"
"isy sine wave for comparison."
      Position		      [223, 59]
      HorizontalAlignment     "left"
      ForegroundColor	      "blue"
    }
    Annotation {
      Name		      "Note: This model creates  workspace variables  "
"\"dsp_examples_hipassNum\" and \"dsp_examples_lopassNum\""
      Position		      [6, 353]
      HorizontalAlignment     "left"
      ForegroundColor	      "red"
      FontName		      "Arial"
    }
  }
}
MatData {
  NumRecords		  3
  DataRecord {
    Tag			    DataTag2
    Data		    "  %)30     .    \\     8    (     @         %    "
"\"     $    !     0         %  0 \"0    $    2    4V5E9       4V5E9$9L86<    "

⌨️ 快捷键说明

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