How i can get state space model from transfer function?

조회 수: 5 (최근 30일)
상준 안
상준 안 2021년 6월 17일
댓글: Star Strider 2021년 6월 18일
Hello, I tried alot with the code you can see in the picture. But it doesn`t work. I want to know if Matlab dosen`t support the function of tf2ss or I just have a mistake.
[code]
num = [0 0 0 5];
den = [1 6 5 0];
[A, B, C, D] = tf2ss(num,den)
[Error message]
Execution of script tf2ss as a function is not supported:
Error in tf2ss (line 6)
[A, B, C, D] = tf2ss(num,den)
Thank you for reading my question and if you know the answer, please leave a comment :)

채택된 답변

Star Strider
Star Strider 2021년 6월 17일
Apparently you named a script ‘tf2ss’. This overshadows the tf2ss function.
The solution is to re-name the script to something that is meaningful and that does not overshadow MATLAB functions.
  댓글 수: 6
상준 안
상준 안 2021년 6월 18일
Thank u so much :)
Star Strider
Star Strider 2021년 6월 18일
As always, my pleasure!

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

추가 답변 (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