フィルターのクリア

how can I close all volshow windows

42 ビュー (過去 30 日間)
Michael
Michael 2023 年 6 月 16 日
コメント済み: Michael 2023 年 6 月 16 日
I have noticed that "close all" does not close volshow windows. How can I close all volshow windows?

採用された回答

Ronit
Ronit 2023 年 6 月 16 日
Hi,
To close all volshow windows in MATLAB, you can use the close function with the handles to the volshow windows. Here's how you can modify the close all command to include volshow windows:
close all;
handles = findall(groot, 'Type', 'figure', 'Tag', 'volshow');
close(handles);
The first command close all closes all open figures in MATLAB. The second command uses the findall function to find all figures with the volshow tag, which is used by the volshow function to identify its windows. The close function is then called with the handles to these figures to close them.
Hope this helps!
  1 件のコメント
Michael
Michael 2023 年 6 月 16 日
Very nice Solution. Thanks Ronit!

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by