2019-08-17 10:50:06 +02:00
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2020-10-26 09:43:09 +01:00
<!-- 2019 - 10 - 08 mar. 13:27 -->
2019-08-17 10:50:06 +02:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > List of filters - Matlab Implementation< / title >
< meta name = "generator" content = "Org mode" / >
< meta name = "author" content = "Dehaeze Thomas" / >
< style type = "text/css" >
<!-- /* --> <![CDATA[/*> <!-- */
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
< / style >
< link rel = "stylesheet" type = "text/css" href = "./css/htmlize.css" / >
< link rel = "stylesheet" type = "text/css" href = "./css/readtheorg.css" / >
< link rel = "stylesheet" type = "text/css" href = "./css/zenburn.css" / >
< script type = "text/javascript" src = "./js/jquery.min.js" > < / script >
< script type = "text/javascript" src = "./js/bootstrap.min.js" > < / script >
< script type = "text/javascript" src = "./js/jquery.stickytableheaders.min.js" > < / script >
< script type = "text/javascript" src = "./js/readtheorg.js" > < / script >
< script type = "text/javascript" >
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2019 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!-- /* --> <![CDATA[/*> <!-- */
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
< / script >
< script type = "text/x-mathjax-config" >
MathJax.Hub.Config({
displayAlign: "center",
displayIndent: "0em",
"HTML-CSS": { scale: 100,
linebreaks: { automatic: "false" },
webFont: "TeX"
},
SVG: {scale: 100,
linebreaks: { automatic: "false" },
font: "TeX"},
NativeMML: {scale: 100},
TeX: { equationNumbers: {autoNumber: "AMS"},
MultLineWidth: "85%",
TagSide: "right",
TagIndent: ".8em"
}
});
< / script >
< script type = "text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML">< / script >
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "./index.html" > UP < / a >
|
< a accesskey = "H" href = "./index.html" > HOME < / a >
< / div > < div id = "content" >
< h1 class = "title" > List of filters - Matlab Implementation< / h1 >
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
2020-10-26 09:43:09 +01:00
< li > < a href = "#orge8f7972" > 1. Proportional - Integral - Derivative< / a >
2019-08-17 10:50:06 +02:00
< ul >
2020-10-26 09:43:09 +01:00
< li > < a href = "#org8aafed7" > 1.1. Proportional< / a > < / li >
< li > < a href = "#org37b43e8" > 1.2. Integral< / a > < / li >
< li > < a href = "#orgfb65936" > 1.3. Derivative< / a > < / li >
2019-08-17 10:50:06 +02:00
< / ul >
< / li >
2020-10-26 09:43:09 +01:00
< li > < a href = "#orgfed2e4e" > 2. Low Pass< / a >
2019-08-17 10:50:06 +02:00
< ul >
2020-10-26 09:43:09 +01:00
< li > < a href = "#orga8faa42" > 2.1. First Order< / a > < / li >
< li > < a href = "#org170a9b0" > 2.2. Second Order< / a > < / li >
< li > < a href = "#orgf8f61f9" > 2.3. Combine multiple filters< / a > < / li >
< li > < a href = "#orge265051" > 2.4. Nice combination< / a > < / li >
2019-08-17 10:50:06 +02:00
< / ul >
< / li >
2020-10-26 09:43:09 +01:00
< li > < a href = "#org7e3ece6" > 3. High Pass< / a >
2019-08-17 10:50:06 +02:00
< ul >
2020-10-26 09:43:09 +01:00
< li > < a href = "#org291d74d" > 3.1. First Order< / a > < / li >
< li > < a href = "#org5d4ea15" > 3.2. Second Order< / a > < / li >
< li > < a href = "#orge71c2dd" > 3.3. Combine multiple filters< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org791f35b" > 4. Band Pass< / a > < / li >
< li > < a href = "#orge054b4d" > 5. Notch< / a > < / li >
< li > < a href = "#orgf94d78a" > 6. Bump< / a > < / li >
< li > < a href = "#org6255d82" > 7. Chebyshev< / a >
< ul >
< li > < a href = "#org2bfe9f5" > 7.1. Chebyshev Type I< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org127884a" > 8. Lead - Lag< / a >
< ul >
< li > < a href = "#orgb58ebc8" > 8.1. Lead< / a > < / li >
< li > < a href = "#org700da69" > 8.2. Lag< / a > < / li >
< li > < a href = "#orgf2125da" > 8.3. Lead Lag< / a > < / li >
< / ul >
< / li >
< li > < a href = "#orga776beb" > 9. Complementary< / a > < / li >
< li > < a href = "#org18d2496" > 10. Performance Weight< / a > < / li >
< li > < a href = "#org2ee1e4e" > 11. Combine Filters< / a >
< ul >
< li > < a href = "#org890b908" > 11.1. Additive< / a > < / li >
< li > < a href = "#org6f10b80" > 11.2. Multiplicative< / a > < / li >
2019-08-17 10:50:06 +02:00
< / ul >
< / li >
< / ul >
< / div >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-orge8f7972" class = "outline-2" >
< h2 id = "orge8f7972" > < span class = "section-number-2" > 1< / span > Proportional - Integral - Derivative< / h2 >
2019-08-17 10:50:06 +02:00
< div class = "outline-text-2" id = "text-1" >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-org8aafed7" class = "outline-3" >
< h3 id = "org8aafed7" > < span class = "section-number-3" > 1.1< / span > Proportional< / h3 >
< / div >
< div id = "outline-container-org37b43e8" class = "outline-3" >
< h3 id = "org37b43e8" > < span class = "section-number-3" > 1.2< / span > Integral< / h3 >
< / div >
< div id = "outline-container-orgfb65936" class = "outline-3" >
< h3 id = "orgfb65936" > < span class = "section-number-3" > 1.3< / span > Derivative< / h3 >
< / div >
< / div >
< div id = "outline-container-orgfed2e4e" class = "outline-2" >
< h2 id = "orgfed2e4e" > < span class = "section-number-2" > 2< / span > Low Pass< / h2 >
< div class = "outline-text-2" id = "text-2" >
< / div >
< div id = "outline-container-orga8faa42" class = "outline-3" >
< h3 id = "orga8faa42" > < span class = "section-number-3" > 2.1< / span > First Order< / h3 >
< div class = "outline-text-3" id = "text-2-1" >
2019-08-17 10:50:06 +02:00
< p >
\[ H(s) = \frac{1}{1 + s/\omega_0} \]
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ; < span class = "org-comment" > % [rad/s]< / span >
H = < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "org92da067" class = "figure" >
2019-08-17 10:50:06 +02:00
< p > < img src = "figs/lpf_first_order.png" alt = "lpf_first_order.png" / >
< / p >
< p > < span class = "figure-number" > Figure 1: < / span > First Order Low Pass Filter (< a href = "./figs/lpf_first_order.png" > png< / a > , < a href = "./figs/lpf_first_order.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-org170a9b0" class = "outline-3" >
< h3 id = "org170a9b0" > < span class = "section-number-3" > 2.2< / span > Second Order< / h3 >
< div class = "outline-text-3" id = "text-2-2" >
2019-08-17 10:50:06 +02:00
< p >
\[ H(s) = \frac{1}{1 + 2 \xi / \omega_0 s + s^2/\omega_0^2} \]
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ; < span class = "org-comment" > % [rad/s]< / span >
xi = < span class = "org-highlight-numbers-number" > 0< / span > .< span class = "org-highlight-numbers-number" > 3< / span > ;
H = < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > xi< span class = "org-type" > /< / span > w0< span class = "org-type" > *< / span > s < span class = "org-type" > +< / span > s< span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > w0< span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "orgd09d719" class = "figure" >
2019-08-17 10:50:06 +02:00
< p > < img src = "figs/lpf_second_order.png" alt = "lpf_second_order.png" / >
< / p >
< p > < span class = "figure-number" > Figure 2: < / span > Second Order Low Pass Filter (< a href = "./figs/lpf_second_order.png" > png< / a > , < a href = "./figs/lpf_second_order.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-orgf8f61f9" class = "outline-3" >
< h3 id = "orgf8f61f9" > < span class = "section-number-3" > 2.3< / span > Combine multiple filters< / h3 >
< div class = "outline-text-3" id = "text-2-3" >
2019-08-17 10:50:06 +02:00
< p >
\[ H(s) = \left( \frac{1}{1 + s/\omega_0} \right)^n \]
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ; < span class = "org-comment" > % [rad/s]< / span >
n = < span class = "org-highlight-numbers-number" > 3< / span > ;
H = < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > ^< / span > n;
< / pre >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "org05c14e7" class = "figure" >
2019-08-17 10:50:06 +02:00
< p > < img src = "figs/lpf_multiple_first_order.png" alt = "lpf_multiple_first_order.png" / >
< / p >
< p > < span class = "figure-number" > Figure 3: < / span > Combine Multiple First Order Low Pass Filter (< a href = "./figs/lpf_multiple_first_order.png" > png< / a > , < a href = "./figs/lpf_multiple_first_order.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-orge265051" class = "outline-3" >
< h3 id = "orge265051" > < span class = "section-number-3" > 2.4< / span > Nice combination< / h3 >
< div class = "outline-text-3" id = "text-2-4" >
\begin{equation}
W(s) = G_c * \left(\frac{\frac{1}{\omega_0}\sqrt{\frac{1 - \left(\frac{G_0}{G_c}\right)^{\frac{2}{n}}}{1 - \left(\frac{G_c}{G_\infty}\right)^{\frac{2}{n}}}} s + \left(\frac{G_0}{G_c}\right)^{\frac{1}{n}}}{\frac{1}{\omega_0} \sqrt{\frac{1 - \left(\frac{G_0}{G_c}\right)^{\frac{2}{n}}}{\left(\frac{G_\infty}{G_c}\right)^{\frac{2}{n}} - 1}} s + 1}\right)^n
\end{equation}
< div class = "org-src-container" >
< pre class = "src src-matlab" > n = < span class = "org-highlight-numbers-number" > 2< / span > ; w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > < span class = "org-highlight-numbers-number" > 11< / span > ; G0 = < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > < span class = "org-highlight-numbers-number" > 10< / span > ; G1 = < span class = "org-highlight-numbers-number" > 1000< / span > ; Gc = < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > < span class = "org-highlight-numbers-number" > 2< / span > ;
wL = Gc< span class = "org-type" > *< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > G1< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > /< / span > w0< span class = "org-type" > *< / span > sqrt< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > -< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > G0< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > G1< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > -< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > *< / span > s < span class = "org-type" > +< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > G0< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > w0< span class = "org-type" > *< / span > sqrt< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > -< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > G0< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > G1< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > -< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > *< / span > s < span class = "org-type" > +< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > ^< / span > n;
n = < span class = "org-highlight-numbers-number" > 3< / span > ; w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > < span class = "org-highlight-numbers-number" > 9< / span > ; G0 = < span class = "org-highlight-numbers-number" > 10000< / span > ; G1 = < span class = "org-highlight-numbers-number" > 0< / span > .< span class = "org-highlight-numbers-number" > 1< / span > ; Gc = < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > < span class = "org-highlight-numbers-number" > 2< / span > ;
wH = Gc< span class = "org-type" > *< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > G1< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > /< / span > w0< span class = "org-type" > *< / span > sqrt< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > -< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > G0< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > G1< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > -< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > *< / span > s < span class = "org-type" > +< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > G0< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > w0< span class = "org-type" > *< / span > sqrt< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > -< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > G0< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-4" > (< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > G1< span class = "org-type" > /< / span > Gc< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-5" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-5" > )< / span > < span class = "org-type" > -< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-4" > )< / span > < span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > *< / span > s < span class = "org-type" > +< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > ^< / span > n;
< / pre >
2019-08-17 10:50:06 +02:00
< / div >
2020-10-26 09:43:09 +01:00
< / div >
< / div >
< / div >
< div id = "outline-container-org7e3ece6" class = "outline-2" >
< h2 id = "org7e3ece6" > < span class = "section-number-2" > 3< / span > High Pass< / h2 >
< div class = "outline-text-2" id = "text-3" >
< / div >
< div id = "outline-container-org291d74d" class = "outline-3" >
< h3 id = "org291d74d" > < span class = "section-number-3" > 3.1< / span > First Order< / h3 >
< div class = "outline-text-3" id = "text-3-1" >
2019-08-17 10:50:06 +02:00
< p >
\[ H(s) = \frac{s/\omega_0}{1 + s/\omega_0} \]
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ; < span class = "org-comment" > % [rad/s]< / span >
H = < span class = "org-rainbow-delimiters-depth-1" > (< / span > s< span class = "org-type" > /< / span > w0< span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "orgc492a24" class = "figure" >
2019-08-17 10:50:06 +02:00
< p > < img src = "figs/hpf_first_order.png" alt = "hpf_first_order.png" / >
< / p >
< p > < span class = "figure-number" > Figure 4: < / span > First Order High Pass Filter (< a href = "./figs/hpf_first_order.png" > png< / a > , < a href = "./figs/hpf_first_order.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-org5d4ea15" class = "outline-3" >
< h3 id = "org5d4ea15" > < span class = "section-number-3" > 3.2< / span > Second Order< / h3 >
< div class = "outline-text-3" id = "text-3-2" >
2019-08-17 10:50:06 +02:00
< p >
\[ H(s) = \frac{s^2/\omega_0^2}{1 + 2 \xi / \omega_0 s + s^2/\omega_0^2} \]
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ; < span class = "org-comment" > % [rad/s]< / span >
xi = < span class = "org-highlight-numbers-number" > 0< / span > .< span class = "org-highlight-numbers-number" > 3< / span > ;
H = < span class = "org-rainbow-delimiters-depth-1" > (< / span > s< span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > w0< span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > xi< span class = "org-type" > /< / span > w0< span class = "org-type" > *< / span > s < span class = "org-type" > +< / span > s< span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > w0< span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "orga8fa21b" class = "figure" >
2019-08-17 10:50:06 +02:00
< p > < img src = "figs/hpf_second_order.png" alt = "hpf_second_order.png" / >
< / p >
< p > < span class = "figure-number" > Figure 5: < / span > Second Order High Pass Filter (< a href = "./figs/hpf_second_order.png" > png< / a > , < a href = "./figs/hpf_second_order.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-orge71c2dd" class = "outline-3" >
< h3 id = "orge71c2dd" > < span class = "section-number-3" > 3.3< / span > Combine multiple filters< / h3 >
< div class = "outline-text-3" id = "text-3-3" >
2019-08-17 10:50:06 +02:00
< p >
\[ H(s) = \left( \frac{s/\omega_0}{1 + s/\omega_0} \right)^n \]
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ; < span class = "org-comment" > % [rad/s]< / span >
n = < span class = "org-highlight-numbers-number" > 3< / span > ;
H = < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > s< span class = "org-type" > /< / span > w0< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > ^< / span > n;
< / pre >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "orge98e2ed" class = "figure" >
2019-08-17 10:50:06 +02:00
< p > < img src = "figs/hpf_multiple_first_order.png" alt = "hpf_multiple_first_order.png" / >
< / p >
< p > < span class = "figure-number" > Figure 6: < / span > Combine Multiple First Order High Pass Filter (< a href = "./figs/hpf_multiple_first_order.png" > png< / a > , < a href = "./figs/hpf_multiple_first_order.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-org791f35b" class = "outline-2" >
< h2 id = "org791f35b" > < span class = "section-number-2" > 4< / span > Band Pass< / h2 >
< / div >
< div id = "outline-container-orge054b4d" class = "outline-2" >
< h2 id = "orge054b4d" > < span class = "section-number-2" > 5< / span > Notch< / h2 >
2019-08-17 10:50:06 +02:00
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-orgf94d78a" class = "outline-2" >
< h2 id = "orgf94d78a" > < span class = "section-number-2" > 6< / span > Bump< / h2 >
< div class = "outline-text-2" id = "text-6" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > n = < span class = "org-highlight-numbers-number" > 4< / span > ;
w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ;
A = < span class = "org-highlight-numbers-number" > 10< / span > ;
a = sqrt< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > A< span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > -< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > A< span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > *< / span > sqrt< span class = "org-rainbow-delimiters-depth-2" > (< / span > A< span class = "org-type" > ^< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > n< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-type" > -< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
G = < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > w0< span class = "org-type" > /< / span > a< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > *< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-3" > (< / span > w0< span class = "org-type" > *< / span > a< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > w0< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > ^< / span > n;
bodeFig< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-rainbow-delimiters-depth-2" > {< / span > G< span class = "org-rainbow-delimiters-depth-2" > }< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span >
< / pre >
< / div >
< / div >
2019-08-17 10:50:06 +02:00
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-org6255d82" class = "outline-2" >
< h2 id = "org6255d82" > < span class = "section-number-2" > 7< / span > Chebyshev< / h2 >
< div class = "outline-text-2" id = "text-7" >
2019-08-17 10:50:06 +02:00
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-org2bfe9f5" class = "outline-3" >
< h3 id = "org2bfe9f5" > < span class = "section-number-3" > 7.1< / span > Chebyshev Type I< / h3 >
< div class = "outline-text-3" id = "text-7-1" >
2019-08-17 10:50:06 +02:00
< div class = "org-src-container" >
< pre class = "src src-matlab" > n = < span class = "org-highlight-numbers-number" > 4< / span > ; < span class = "org-comment" > % Order of the filter< / span >
Rp = < span class = "org-highlight-numbers-number" > 3< / span > ; < span class = "org-comment" > % Maximum peak-to-peak ripple [dB]< / span >
Wp = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ; < span class = "org-comment" > % passband-edge frequency [rad/s]< / span >
< span class = "org-rainbow-delimiters-depth-1" > [< / span > A,B,C,D< span class = "org-rainbow-delimiters-depth-1" > ]< / span > = cheby1< span class = "org-rainbow-delimiters-depth-1" > (< / span > n, Rp, Wp, < span class = "org-string" > 'high', 's'< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
H = ss< span class = "org-rainbow-delimiters-depth-1" > (< / span > A, B, C, D< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "org175fae7" class = "figure" >
2019-08-17 10:50:06 +02:00
< p > < img src = "figs/cheby1_hpf.png" alt = "cheby1_hpf.png" / >
< / p >
< p > < span class = "figure-number" > Figure 7: < / span > First Order Low Pass Filter (< a href = "./figs/cheby1_hpf.png" > png< / a > , < a href = "./figs/cheby1_hpf.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
< / div >
2020-10-26 09:43:09 +01:00
< div id = "outline-container-org127884a" class = "outline-2" >
< h2 id = "org127884a" > < span class = "section-number-2" > 8< / span > Lead - Lag< / h2 >
< div class = "outline-text-2" id = "text-8" >
< / div >
< div id = "outline-container-orgb58ebc8" class = "outline-3" >
< h3 id = "orgb58ebc8" > < span class = "section-number-3" > 8.1< / span > Lead< / h3 >
< div class = "outline-text-3" id = "text-8-1" >
< p >
\[ H(s) = \frac{1 + s/\omega_z}{1 + s/\omega_p}, \quad \omega_z < \omega_p \]
< / p >
< ul class = "org-ul" >
< li class = "off" > < code > [  ]< / code > Find a nice parametrisation to be able to specify the center frequency and the phase added< / li >
< li class = "off" > < code > [  ]< / code > Compute also the change in magnitude< / li >
< / ul >
< div class = "org-src-container" >
< pre class = "src src-matlab" > h = < span class = "org-highlight-numbers-number" > 2< / span > .< span class = "org-highlight-numbers-number" > 0< / span > ;
wz = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > h; < span class = "org-comment" > % [rad/s]< / span >
wp = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > h; < span class = "org-comment" > % [rad/s]< / span >
H = < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > wz< span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > wp< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< div id = "orgbcca770" class = "figure" >
< p > < img src = "figs/lead_filter.png" alt = "lead_filter.png" / >
< / p >
< p > < span class = "figure-number" > Figure 8: < / span > Lead Filter (< a href = "./figs/lead_filter.png" > png< / a > , < a href = "./figs/lead_filter.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org700da69" class = "outline-3" >
< h3 id = "org700da69" > < span class = "section-number-3" > 8.2< / span > Lag< / h3 >
< div class = "outline-text-3" id = "text-8-2" >
< p >
\[ H(s) = \frac{1 + s/\omega_z}{1 + s/\omega_p}, \quad \omega_z > \omega_p \]
< / p >
< ul class = "org-ul" >
< li class = "off" > < code > [  ]< / code > Find a nice parametrisation to be able to specify the center frequency and the phase added< / li >
< li class = "off" > < code > [  ]< / code > Compute also the change in magnitude< / li >
< / ul >
< div class = "org-src-container" >
< pre class = "src src-matlab" > h = < span class = "org-highlight-numbers-number" > 2< / span > .< span class = "org-highlight-numbers-number" > 0< / span > ;
wz = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > h; < span class = "org-comment" > % [rad/s]< / span >
wp = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > /< / span > h; < span class = "org-comment" > % [rad/s]< / span >
H = < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > wz< span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > wp< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< div id = "org4ddf70a" class = "figure" >
< p > < img src = "figs/lag_filter.png" alt = "lag_filter.png" / >
< / p >
< p > < span class = "figure-number" > Figure 9: < / span > Lag Filter (< a href = "./figs/lag_filter.png" > png< / a > , < a href = "./figs/lag_filter.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-orgf2125da" class = "outline-3" >
< h3 id = "orgf2125da" > < span class = "section-number-3" > 8.3< / span > Lead Lag< / h3 >
< div class = "outline-text-3" id = "text-8-3" >
< p >
\[ H(s) = \frac{1 + s/\omega_z}{1 + s/\omega_p} \frac{1 + s/\omega_z}{1 + s/\omega_p}, \quad \omega_z > \omega_p \]
< / p >
< div class = "org-src-container" >
< pre class = "src src-matlab" > wz1 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > < span class = "org-highlight-numbers-number" > 1< / span > ; < span class = "org-comment" > % [rad/s]< / span >
wp1 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > < span class = "org-highlight-numbers-number" > 0< / span > .< span class = "org-highlight-numbers-number" > 1< / span > ; < span class = "org-comment" > % [rad/s]< / span >
wz2 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > < span class = "org-highlight-numbers-number" > 10< / span > ; < span class = "org-comment" > % [rad/s]< / span >
wp2 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > < span class = "org-type" > *< / span > < span class = "org-highlight-numbers-number" > 20< / span > ; < span class = "org-comment" > % [rad/s]< / span >
H = < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > wz1< span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > wp1< span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > *< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > wz2< span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-type" > +< / span > s< span class = "org-type" > /< / span > wp2< span class = "org-rainbow-delimiters-depth-1" > )< / span > ;
< / pre >
< / div >
< div id = "orge8b5da5" class = "figure" >
< p > < img src = "figs/lead_lag_filter.png" alt = "lead_lag_filter.png" / >
< / p >
< p > < span class = "figure-number" > Figure 10: < / span > Lead Lag Filter (< a href = "./figs/lead_lag_filter.png" > png< / a > , < a href = "./figs/lead_lag_filter.pdf" > pdf< / a > .< / p >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-orga776beb" class = "outline-2" >
< h2 id = "orga776beb" > < span class = "section-number-2" > 9< / span > Complementary< / h2 >
< / div >
< div id = "outline-container-org18d2496" class = "outline-2" >
< h2 id = "org18d2496" > < span class = "section-number-2" > 10< / span > Performance Weight< / h2 >
< div class = "outline-text-2" id = "text-10" >
< div class = "org-src-container" >
< pre class = "src src-matlab" > w0 = < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > *< / span > < span class = "org-constant" > pi< / span > ; < span class = "org-comment" > % [rad/s]< / span >
A = < span class = "org-highlight-numbers-number" > 1e< / span > < span class = "org-type" > -< / span > < span class = "org-highlight-numbers-number" > 2< / span > ;
M = < span class = "org-highlight-numbers-number" > 5< / span > ;
H = < span class = "org-rainbow-delimiters-depth-1" > (< / span > s< span class = "org-type" > /< / span > sqrt< span class = "org-rainbow-delimiters-depth-2" > (< / span > M< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-type" > +< / span > w0< span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > < span class = "org-type" > /< / span > < span class = "org-rainbow-delimiters-depth-1" > (< / span > s < span class = "org-type" > +< / span > w0< span class = "org-type" > *< / span > sqrt< span class = "org-rainbow-delimiters-depth-2" > (< / span > A< span class = "org-rainbow-delimiters-depth-2" > )< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span > < span class = "org-type" > ^< / span > < span class = "org-highlight-numbers-number" > 2< / span > ;
< / pre >
< / div >
< div class = "figure" >
< p > < img src = "figs/weight_first_order.png" alt = "weight_first_order.png" / >
< / p >
< / div >
< / div >
< / div >
< div id = "outline-container-org2ee1e4e" class = "outline-2" >
< h2 id = "org2ee1e4e" > < span class = "section-number-2" > 11< / span > Combine Filters< / h2 >
< div class = "outline-text-2" id = "text-11" >
< / div >
< div id = "outline-container-org890b908" class = "outline-3" >
< h3 id = "org890b908" > < span class = "section-number-3" > 11.1< / span > Additive< / h3 >
< div class = "outline-text-3" id = "text-11-1" >
< ul class = "org-ul" >
< li class = "off" > < code > [  ]< / code > Explain how phase and magnitude combine< / li >
< / ul >
< / div >
< / div >
< div id = "outline-container-org6f10b80" class = "outline-3" >
< h3 id = "org6f10b80" > < span class = "section-number-3" > 11.2< / span > Multiplicative< / h3 >
< / div >
2019-08-17 10:50:06 +02:00
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2020-10-26 09:43:09 +01:00
< p class = "date" > Created: 2019-10-08 mar. 13:27< / p >
2019-08-17 10:50:06 +02:00
< p class = "validation" > < a href = "http://validator.w3.org/check?uri=referer" > Validate< / a > < / p >
< / div >
< / body >
< / html >