tf command not working correctly

조회 수: 14 (최근 30일)
Grace Normoyle
Grace Normoyle 2020년 3월 31일
댓글: Adam Danz 2020년 4월 1일
Hello,
I am not sure why this is happening. I ran this command in MATLAB
sys=tf([4],[1 2 0])
and got this as the answer.
sys =
s^20 + 1.5 s^19 + 2 s^18 + 2.5 s^17 + 3 s^16 + 3.5 s^15
+ 4 s^14 + 4.5 s^13 + 5 s^12 + 5.5 s^11 + 6 s^10
+ 5.5 s^9 + 5 s^8 + 4.5 s^7 + 4 s^6 + 3.5 s^5
+ 3 s^4 + 2.5 s^3 + 2 s^2 + 1.5 s + 1
--------------------------------------------------------------
s^20 + 1.5 s^19 + 2 s^18 + 2.5 s^17 + 3 s^16 + 3.5 s^15
+ 4 s^14 + 4.5 s^13 + 5 s^12 + 5.5 s^11 + 6 s^10
+ 5.5 s^9 + 5 s^8 + 4.5 s^7 + 4 s^6 + 3.5 s^5
+ 3 s^4 + 2.5 s^3 + 2 s^2 + 1.5 s + 1
This is not the correct answer to the transfer function.
Do you know what I can do to fix this?
Thank you
  댓글 수: 4
Grace Normoyle
Grace Normoyle 2020년 3월 31일
When I open the MATLAB I get these errors.
Unable to perform assignment because the left and right sides have a different number of elements.
Error in matlab.internal.builtinhelper.repmat (line 53)
siz(idx) = double(full(checkSizesType(arg)));
Error in matlab.supportpackagemanagement.internal.getInstalledSupportPackagesInfo (line 15)
installedSupportPackages = repmat( ...
Unable to perform assignment because the left and right sides have a different number of elements.
Error in matlab.internal.builtinhelper.repmat (line 53)
siz(idx) = double(full(checkSizesType(arg)));
Error in matlab.internal.addons.updates.getSupportPackageUpdates (line 23)
supportPackageUpdates = repmat( ...
Adam Danz
Adam Danz 2020년 4월 1일
See this thread. There are two different answers. Try the accepted answer first. If that doesn't work, try the 2nd answer. If neither work, contact MathWorks support.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by