source: aedes_wbar.m

Last change on this file was 80, checked in by tjniskan, 8 years ago
  • Changed the historical "an2_" prefix to "aedes_" in all files. NOTE:

Any script or function relying to Aedes functions will be broken
because of this. Just do a search/replace from "an2_" to "aedes_" in
your files and all should be well...

  • Changed the name of an2_readtab.m to a more informative

aedes_readphasetable.m

File size: 1.3 KB
Line 
1function H = aedes_wbar(varargin)
2% AEDES_WBAR - Slightly modified Matlab Waitbar...
3% Synopsis:
4%       See the WAITBAR function synopsis by typing 'help waitbar' into
5%       the Matlab command prompt.
6%
7% Description:
8%
9% Examples:
10%
11% See also:
12%        WAITBAR
13
14% This function is a part of Aedes - A graphical tool for analyzing
15% medical images
16%
17% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
18%
19% Department of Physics, Department of Neurobiology
20% University of Kuopio, FINLAND
21%
22% This program may be used under the terms of the GNU General Public
23% License version 2.0 as published by the Free Software Foundation
24% and appearing in the file LICENSE.TXT included in the packaging of
25% this program.
26%
27% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29
30
31
32if nargout==1
33  h=waitbar(varargin{1},'');
34  %h = waitbar(varargin{1},varargin{2:end});
35  set(h,'Name',sprintf('Processing...%.0f%%',varargin{1}*100))
36  set(get(findobj(h,'type','axes'),'Title'),'fontsize',8,...
37        'interpreter','none',...
38        'string',varargin{2})
39  H=h;
40elseif nargout==0
41  waitbar(varargin{1:end})
42  set(varargin{2},'Name',['Processing...' sprintf('%.0f',varargin{1}*100) '%'])
43end
44
Note: See TracBrowser for help on using the repository browser.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008