When self made wait bar updates, it is bringing MATLAB to the front screen

1 回表示 (過去 30 日間)
Sarah Crimi
Sarah Crimi 2019 年 1 月 24 日
コメント済み: Walter Roberson 2019 年 1 月 29 日
Hello,
I have a GUI that when a button is pressed, data is acquired through a seperate function.
I am using the following code to update a rectangle on the screen to show the percent that a test is completed. However, MATLAB comes to the front of the screens when every this rectangle is updated. I don't want that as it is going to be distracting to the user if they are trying to do something else. How can I make it so that it updates the rectangle but doesn't bring MATLAB to the top screen? The code below shows the rectangle. Thanks!
rectangle('Position',[0,0,(round(1000*k/n))+1,20],'FaceColor','r');
num = round(((k*100)/n),2);
text(480,10,[num2str(num),'%']);
drawnow;
  4 件のコメント
Sarah Crimi
Sarah Crimi 2019 年 1 月 28 日
編集済み: Sarah Crimi 2019 年 1 月 28 日
Hello,
It is correct that I am using the axes command, but when I take it out of the loop, then it draws the rectangle in a seperate window, and I want it drawn in my GUI. I am attaching the script

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by