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).![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1369224/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1369224/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1369229/image.png)
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.
0 个评论
采纳的回答
Walter Roberson
2023-4-28
lsim returns system response, not a "plant"
You would probably want controlSystemDesigner(sys)
2 个评论
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 Center 和 File Exchange 中查找有关 Get Started with Control System Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!