Waitbar2

버전 1.0.0.0 (3.41 KB) 작성자: Jasper Menger
Modification of standard waitbar function; neater code, and a fancy color shift effect added
다운로드 수: 2.1K
업데이트 2005/11/23

라이선스 없음

WAITBAR2 - Displays wait bar with fancy color shift effect

Adaptation of the MatLab standard waitbar function:

WAITBAR2 is typically used inside a FOR loop that performs a
lengthy computation. A sample usage is shown below:
h = waitbar(0,'Please wait...', 'BarColor', 'g');
for i = 1:100,
% computation here %
waitbar(i/100, h);
end
close(h);

Examples for the 'BarColor' option:
- Standard color names: 'red', 'blue', 'green', etcetera
- Standard color codes: 'r', 'b', 'k', etcetera
- A RGB vector, such as [.5 0 .5] (deep purple)
- Two RGB colors in a matrix, such as [1 0 0; 0 0 1] (gradient red-blue)

The latter example shows how to create a custom color-shift effect. The top row of the 2x3 matrix gives the initial color, and the bottom row the end color.

인용 양식

Jasper Menger (2026). Waitbar2 (https://kr.mathworks.com/matlabcentral/fileexchange/9117-waitbar2), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R14SP2
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 App Building에 대해 자세히 알아보기
도움

도움 준 파일: waitbar2a(x, whichbar, varargin)

버전 게시됨 릴리스 정보
1.0.0.0