MATLAB Answers

How to obtain output data sample given the input data samples and a transfer function in Z-domain?

4 views (last 30 days)
Johann Baader
Johann Baader on 14 Sep 2020
Edited: Paul on 14 Sep 2020
Hi Everyone,
Let us suppose that I have an array that corresponds to my input data and I have a system represented by the transfer function . What would be the most straighforward way to obtain the output samples in Matlab?

  3 Comments

Johann Baader
Johann Baader on 14 Sep 2020
Hi Hayden. But then, how do you set the transfer function? I have seen examples in the Laplace (s) domain. How do I treat z in my case?

Sign in to comment.

Accepted Answer

Paul
Paul on 14 Sep 2020
Edited: Paul on 14 Sep 2020
G=tf(2,[1 1],-1,'Variable','z^-1')
G =
2
--------
1 + z^-1
Sample time: unspecified
Discrete-time transfer function.
y = lsim(G,x);

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!