필터 지우기
필터 지우기

Error using controlSystemDesigner (line 230) The model for "G" must be single input, single output

조회 수: 3 (최근 30일)
Hello, I am trying to simulate a control systems transfer function with an added disturbance through matlab, and design a compensator for it ( A pic of the block diagram is attached).
I have used the following code (pic for the code is attached), but when I try to use the controlsystemdesigner toolbox its giving me an error: Error using controlSystemDesigner (line 230) The model for "G" must be single input, single output.
Can someone please explain whats the problem with that? and if so, how can I modify this code to be able to use the ControlSystemDesigner toolbox and be able to design a compensator for it?
Thank you in advanced.

채택된 답변

Walter Roberson
Walter Roberson 2023년 4월 28일
lsim returns system response, not a "plant"
You would probably want controlSystemDesigner(sys)
  댓글 수: 2
Hamid alrawi
Hamid alrawi 2023년 4월 28일
but this will show me the system without the disturbance, how can I add the disturbance to it?
Walter Roberson
Walter Roberson 2023년 4월 28일
I am not sure that is something you would do. You do not want to end up training for one fixed disturbance, and controlSystemDesigner does not appear to have a facility to include a random number generator.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Control System Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by