Close Control System Toolbox main window

Hello guys, i'm using Control System Toolbox, so i open it with
handle = sisotool();
now i want to close these two windows just opened:
but with
close(handle);
only the second form is closed, so my answer is how to close "Control and Estimation Tools Manager"? I tried to get handle's parent but didn't work, it seems to not have a parent

3 件のコメント

Walter Roberson
Walter Roberson 2016 年 9 月 13 日
Which MATLAB version are you using? When I invoke sisotool() in R2016a I do not get a "Control and Estimation Tools Manager", and when I search for information about that I do not appear to find anything newer than the 2014 time frame.
In the code for speedctrl_demopad.m I find the lines
% Open the model using the command below, and double click on the orange
% block to launch the Control and Estimation Tools Manager.
speedctrl_demo
When I give that command and double click on the orange block that comes up, I get Control System Designer - Bode Editor for Open-Loop 1 . Perhaps Control System Designer replaced the tools you are using?
Davide Baitelli
Davide Baitelli 2016 年 9 月 14 日
編集済み: Davide Baitelli 2016 年 9 月 14 日
I use version R2013b because there are some old UIs which are not compatible with newer version. Btw there are two window, so there are two figures, but i can only access one of them, do you know where the other one is stored and how to get it? Thanks
Walter Roberson
Walter Roberson 2016 年 9 月 14 日
If you examine the UserData field of the handle returned, you will find a sisogui.sisotool stored there which is the tools manager. Unfortunately I have not been able to figure out how to close it by program. I dug into the creation code for it, but it is old-style MATLAB objects and I do not understand some of the object creation mechanisms for that.

サインインしてコメントする。

 採用された回答

Farouk Moukaddem
Farouk Moukaddem 2016 年 9 月 19 日

1 投票

Hi Davide,
The "close" function in MATLAB is used to remove a specified "figure".
The "Control and Estimation Tools Manager" is not considered a "figure", and therefore cannot be closed using this command.
There is no documented way to close this window programmatically in R2013b. You need to close it manually.
Refer to the following documentation link for more information about the "close" function: https://www.mathworks.com/help/matlab/ref/close.html
Thanks,
Farouk

1 件のコメント

Davide Baitelli
Davide Baitelli 2016 年 9 月 19 日
編集済み: Davide Baitelli 2016 年 9 月 19 日
Ok, thanks for the answer. In the end i get round the problem and i choose a different way to us it. Thank you the same

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLinear Model Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by