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

📄 digitalfilter_tut.mdl

📁 数字信号处理(机械工业出版社)的源码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      BlockType		      Reference
      Name		      "Digital Filter1"
      Ports		      [1, 1]
      Position		      [235, 233, 300, 287]
      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		      "dsp_examples_lopassNum"
      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		      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, 136, 55, 174]
      UserDataPersistent      on
      UserData		      "DataTag0"
      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	      "User-defined"
      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 Filter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [0, 0; 95, 0]
      Branch {
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	Points			[0, 40; 155, 0; 0, -25]
	DstBlock		"Matrix\nConcatenation"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"Digital Filter1"
	DstPort			1
      }
      Branch {
	Points			[0, -50; 100, 0; 0, 25]
	DstBlock		"Matrix\nConcatenation"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Matrix\nConcatenation"
      SrcPort		      1
      DstBlock		      "Vector\nScope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Digital Filter1"
      SrcPort		      1
      DstBlock		      "Matrix\nConcatenation"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Digital Filter"
      SrcPort		      1
      Points		      [10, 0; 0, 90]
      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 Digital Filter Block"
      Position		      [17, 19]
      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 blocks implement both the lowpass and highpass \nfilters, which were pred"
"esigned elsewhere. The Vector Scope's \ndisplay shows the original sine wave,"
" the noisy sine wave, and \nthe filtered noisy sine wave for comparison."
      Position		      [303, 59]
      HorizontalAlignment     "left"
      ForegroundColor	      "blue"
    }
    Annotation {
      Name		      "Note: This model creates  workspace variables  "
"\"dsp_examples_hipassNum\" and \"dsp_examples_lopassNum\""
      Position		      [6, 343]
      HorizontalAlignment     "left"
      ForegroundColor	      "red"
      FontName		      "Arial"
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    \\     8    (     @         %    "
"\"     $    !     0         %  0 \"0    $    2    4V5E9       4V5E9$9L86<    "
"     #@   $     &    \"     0         !0    @    !    !0    $         !     H"
"    Y #4 ,  Q #(         #@   %     &    \"     0         !0    @    !    #0 "
"   $         !    !H   !$ &\\ 3@!O '0 4P!A '8 90!3 &4 90!D          "
  }
}

⌨️ 快捷键说明

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