Plot axis in a waitbar figure

조회 수: 1 (최근 30일)
Bruno Peixoto
Bruno Peixoto 2021년 12월 24일
답변: Walter Roberson 2021년 12월 25일
Hi,
I would like to add a plot axis with information given by user to the waitbar handle. In this axis we might plot anything we want: for example , the percentage of the progress bar along time or some data which requires computer-intensive processing. I do not even know how to start. Hence, any help is be appreciated.
Best regards,
Bruno Peixoto
  댓글 수: 1
Rik
Rik 2021년 12월 25일
It's much easier to write your own.
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2021년 12월 25일
waitbar() returns the handle of a traditional figure.
wb = waitbar(stuff)
Data is stored against the figure handle and can be retrieved:
wbhandles = guidata(wb);
Now wbhandles.axes will be the handle to the axes that the waitbar created, and you can manipulate that handle, including drawing or changing graphics objects there.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by