Hi Abaza,
You may try the following workarounds:
- Change the "Window style" to "normal" : https://in.mathworks.com/help/matlab/ref/waitbar.html?searchHighlight=waitbar&s_tid=srchtitle_support_results_1_waitbar#:~:text=Window%20style%2C%20specified%20as%20one%20of%20the%20following%3A
- Don’t use waitbar at all - draw a progress bar inside your existing GUIDE figure. It won’t create new windows, so it never makes your PC inaccessible : https://stackoverflow.com/questions/5368861/how-to-add-progress-bar-control-to-matlab-gui
- If you want to keep waitbar, avoid calling waitbar in every iteration (that brings the window to the front). Instead you can create it once and update its patch directly.
Hope it helps!
