Why do I get this error?

조회 수: 1 (최근 30일)
Luis
Luis 2012년 12월 12일
Any idea of why do I get this error?
>> num = 1
num =
1
>> denom = [1 2 3]
denom =
1 2 3
>> sys = tf(num,denom)
sys =
1
-------------
s^2 + 2 s + 3
Continuous-time transfer function.
>> bandwidth(sys) Error using DynamicSystem/bandwidth (line 33) The "bandwidth" command cannot be used for models of class "tf".

답변 (1개)

Babak
Babak 2012년 12월 12일
Just worked on my computer.. here's your result:
>> bandwidth(sys)
ans =
2.0385
My ver command gives this:
>> ver
------------------------------------------------------------------------------------------------
MATLAB Version: 8.0.0.783 (R2012b)
MATLAB License Number: ******
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
------------------------------------------------------------------------------------------------
  댓글 수: 3
Arthur
Arthur 2012년 12월 12일
It worked here too.
Version 7.12.0.635(R2011a) 64-bit (win64)
Lucy
Lucy 2013년 2월 12일
I have MATLAB Version: 7.14.0.739 (R2012a) on my school campus computers, neither:
bandwidth(sys) (where sys is a tf) or syss=ss(sys)
will work...
Is there something I'm missing or is this an outdated version problem?

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by