writing transfer functions in matlab

Hi, I want to write a transfer function in matlab. I know we usually write in the following way
trans = tf([1 0 0], [1 0 1]);
This gives something as a function of 's'.
what if i wanted to write an equation that was a function of 's+x', where x is a constant. So instead of H(s), i want to write a function and evaluate at values of say H(s+5).
thanks

댓글 수: 1

rupam mahapatra
rupam mahapatra 2022년 1월 27일
Write a MATLAB program to determine the partial fraction expansion of a rational z-transform. Using this program
determine the partial-fraction expansion of G(z).

댓글을 달려면 로그인하십시오.

답변 (3개)

Thomas
Thomas 2012년 4월 2일

0 개 추천

The documentation has good examples on how to write transfer functions:

댓글 수: 3

aaa
aaa 2012년 4월 2일
Hi, yes, i have looked through this documentation, but was not able to find what i wanted.
Any helps with implementation would be great
Thomas
Thomas 2012년 4월 2일
is this what you want:
trans=tf([1 5],[1])
trans =
s + 5
aaa
aaa 2012년 4월 2일
thanks for your reply.
that is not quite what i am looking for. that method just gives H(s) still. I would like to implement something that is in the form of H(s+5)

댓글을 달려면 로그인하십시오.

Arkadiy Turevskiy
Arkadiy Turevskiy 2012년 4월 4일

0 개 추천

Do you want to see the resulting expression as a function of (s+x), or do you just want to write an equation as function of (s+x)? If it is the latter you could do this:
>> arg=tf('s')+5
arg =
s + 5
Continuous-time transfer function.
>> h=1/(arg+3)
h =
1
-----
s + 8
Continuous-time transfer function.
>> arg=tf('s')+10
arg =
s + 10
Continuous-time transfer function.
>> h=1/(arg+3)
h =
1
------
s + 13
Continuous-time transfer function.
HTH. Arkadiy
Savan Prajapati
Savan Prajapati 2020년 7월 24일

0 개 추천

num = 100
den = [1,14,10]
sys = tf(num,den)
printsys(num,den)

카테고리

도움말 센터File Exchange에서 Control System Toolbox에 대해 자세히 알아보기

질문:

aaa
2012년 4월 2일

댓글:

2022년 1월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by