Taking away transfer functions
Mostrar comentarios más antiguos
Hello.
I am having some issues wonder where i am going wrong. I have 2 transfer functions and one needs to be taken away from the other. When working this out by hand and online maths sites MATLAB is not giving the same answer.
Here is my code
num1 = [-0.2 -5 10];
den1 = [1 0];
tf1 = tf(num1,den1)
num2 = [-0.2 -10 100];
den2 = [1 0];
tf2 = tf(num2,den2)
final = tf2-tf1
It is
((-0.2s^2-5s+10)/s)-((-0.2s^2-10s+100)/s)
by hand this should give me (5s-90)/s but MATLAB is giving me (5s^2-90s)/s^2
Does anyone have any idea where i have gone wrong?
Sorry if it is a simple answer i am still learning.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!