# How to implement a filtered derivative

**URL:** <https://discourse.julialang.org/t/how-to-implement-a-filtered-derivative/109441>\
**Category:** Signal and Image Processing\
**Tags:** question\
**Created:** [January 30, 2024, 10:49am UTC](https://discourse.julialang.org/t/how-to-implement-a-filtered-derivative/109441 "2024-01-30T10:49:38Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [January 31, 2024, 6:08pm UTC](https://discourse.julialang.org/t/how-to-implement-a-filtered-derivative/109441/13 "2024-01-31T18:08:54Z")

</div>

Well, your code matches the results from Matlab/Simulink very closely… But it does not look like a discrete time implementation…

How can I implement the discrete time transfer function:

\frac{1}{T} \frac{z-1}{z+T\_s/T-1}

with `T` being the time constant and T\_s the sampling time in Julia directly?

---

_[View the full topic](https://discourse.julialang.org/t/how-to-implement-a-filtered-derivative/109441)._
