Tf Function keeps running

조회 수: 2 (최근 30일)
Alessandro Romeo
Alessandro Romeo 2022년 4월 10일
댓글: Alessandro Romeo 2022년 4월 10일
Hello, I've a problem with the use of the tf function. Basically i try to build a tf function using ( s = tf('s') ) and then writing my function. It works only with few poles and zeros (it seems just a total of 4), but when i try to write a function with more poles and zeros, and then i try to run it, it just keeps running. Any solution to this problem?
  댓글 수: 6
Sam Chak
Sam Chak 2022년 4월 10일
Try clear everything and see if the problem persists.
clear all
Alessandro Romeo
Alessandro Romeo 2022년 4월 10일
Oh WOW, finally it runs correctly! Thank you very much!

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

채택된 답변

Sam Chak
Sam Chak 2022년 4월 10일
I'm glad that the proposed solution works. Just keep in mind that you don't have to clear all every time. You can first check if there is another variable named 's' in the Workspace.
clear all
s = tf('s')
g = 100*(s+10)*(s-5)/(s*(s+8)*(s^2+s+1)*(s-5))
  댓글 수: 1
Alessandro Romeo
Alessandro Romeo 2022년 4월 10일
Oh, I didn't think about that. I will pay attention to this one. Thank you.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by