How can update axes simultaneously with function running
조회 수: 2 (최근 30일)
이전 댓글 표시
I have developed a function which download a map from google.
[matlabImage mask1 col col1 x y boundaries]=read_img();
The time of this function is varying depending on internet speed.
I would like to add a wait giff to show when this function is executing. However, I dont know how to do it.
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 8월 26일
The normal waitbar cannot be easily used because it requires that the code updates the bar as the code realizes more has been done. The code would also need to know the total size to figure out the fraction.
Without those the closest you can get is to use Java to change the waitbar style to something that moves (spins) without being updated. The user would not be able to tell how far the code had progressed
댓글 수: 3
Jan
2017년 8월 26일
@Amir: Suggesting some code demands for bold guessing of what happens inside your read_img. Does it contain a loop or anything else, which would allow for estimating the required time? Please provide the relevant part of your code.
참고 항목
카테고리
Help Center 및 File Exchange에서 Dialog Boxes에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!