Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: [Matlab Question] Converting H(s) to H(z) using derivative approximation?
Replies: 8   Last Post: Dec 7, 2013 3:13 AM

 Messages: [ Previous | Next ]
 frodonet Posts: 5 From: malaysia Registered: 10/24/10
Re: [Matlab Question] Converting H(s) to H(z) using derivative approximation?
Posted: Oct 24, 2010 3:11 PM

Hi Nasser,

Sorry i didn't post my workings before. Here is what i actually did in my matlab.

1) I found out the s-roots by using the roots(p) command.

2) then i use the relationship for derivate approximation where z^-1 = 1 - sT.

3) So from s roots, i get the z roots and then i contruct the polynomial from z-roots using the poly(A) command.

4) Then from the polynomial coefficients, i just use freqz to plot the magnitude vs freq response.

Not sure it's 100% right, but when i plot it the shape is correct which is a low pass filter but the magnitude might be a little off.

After seeing your solution, i need to give it a try.

But do you know that the relationship between s and z is as such :

z^-1 = 1 - sT

So when you have such relationship, does your method still holds?

Date Subject Author
10/24/10 frodonet
10/24/10 Nasser Abbasi
10/24/10 frodonet
10/24/10 Nasser Abbasi
10/24/10 frodonet
10/24/10 frodonet
10/25/10 frodonet
12/7/13 optimist1992@gmail.com
12/7/13 optimist1992@gmail.com