How do I write the transferfunksjon in Matlab

6 views (last 30 days)
Hi!
How do I write the transfer function:
100000/((s/100 + 1)*(s/100000 + 1))
Thanks for answers.

Answers (1)

Sebastian Castro
Sebastian Castro on 6 Oct 2015
If you have Control Systems Toolbox, the tf (transfer function) or zpk (zero-pole-gain) functions will be very helpful. Since your transfer function is already factored, it looks like zpk is the way to go.
We know
  • There are no zeros
  • The poles are -100 and -100000
  • The gain is 100000
So,
>> sys = zpk([],[100 100000],100000)
That's it!
- Sebastian
  2 Comments
Remi Vassnes
Remi Vassnes on 7 Oct 2015
Thanks a lot for your answer :) But if I want to use the num and den code, what would I den use for den before I use G= tf(num, den)?
Sebastian Castro
Sebastian Castro on 7 Oct 2015
You can also build it from scratch using 's' as follows:
s = tf('s');
num = 100000;
den = ((s/100)+1)*((s/100000)+1)
sys = num/den
- Sebastian

Sign in to comment.

Categories

Find more on Dynamic System Models in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!