H =
1e-08 s
-------------------------------------------------
s^4 - 0.0002 s^3 - 3.002 s^2 + 2.001 s + 0.001001
i want the polynomial in the denominator to end with +1 instead of +0.001001. is there any easy way to do this with a function?

댓글 수: 3

Star Strider
Star Strider 2015년 3월 29일
Multiply the numerator and denominator by 1000.
John D'Errico
John D'Errico 2015년 3월 29일
편집: John D'Errico 2015년 3월 29일
More correctly, that would be 999.000999000999..., not 1000.
Star Strider
Star Strider 2015년 3월 29일
I stand corrected!

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

 채택된 답변

Radha Krishna Maddukuri
Radha Krishna Maddukuri 2015년 4월 7일

0 개 추천

Hi Jimmy,
You have to divide the numerator and denominator by the last element in the denominator. The easiest way would be to get the last element using den(end). The end argument will give you the last element in the row irrespective of the length of the array.
>> num = [1e-8 0];
>> den = [1 -0.0002 -3.002 +2.001 +0.001001];
>> poly= tf(num,den);
>> den_new = den/den(end);
>> num_new = num/den(end);
>> poly_new = tf(num_new,den_new);

추가 답변 (0개)

카테고리

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

질문:

2015년 3월 29일

댓글:

2015년 4월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by