Multi progress bar
A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more.
Author: Ben Tordoff
I love this, but I am having trouble with the cancel function. I can't get the 'ResetCancel' to work. Example
multiWaitbar( 'Task 1', 0, 'CanCancel', 'on' );
for ii=1:15
abort = multiWaitbar('Task 1', ii/15);
if abort
yesno = questdlg('Are you sure you want to cancel?', ...
'Cancel', ...
'Yes','No','No');
if strcmp(yesno,'Yes'), break;
else
pause( 1 )
multiWaitbar('Task 1', ii/15, 'ResetCancel');
end
else
pause( 1 )
end
end
multiWaitbar( 'Task 1', 'Close' );
It gives the following error when this code is run and no is selected after trying to cancel.
??? Error using ==> multiWaitbar>iParseInputs at 276
Additional properties must be supplied as property-value pairs
Error in ==> multiWaitbar at 145
[params,values] = iParseInputs( varargin{:} );
13 Oct 2010
findFFT
findFFT returns fft amplitude and frequency vectors from input data
Author: Bryant Svedin
Having never used simulink I can't say for certain how to do it. But after doing a little looking it looks like you should be able to just use the user defined function block and copy the code from findFFT into it.
Hope that helps
10 Sep 2010
findFFT
findFFT returns fft amplitude and frequency vectors from input data
Author: Bryant Svedin
Please comment. I would really appreciate suggestions (or praise if you wish).
27 Jul 2010
getframe_nosteal_focus
Does what getframe does, except it does not put the plotting window in focus.
Author: Erik
sorry. Forget about my last comment. The reason it needed to be rotated is because I had this line of code.
Having never used simulink I can't say for certain how to do it. But after doing a little looking it looks like you should be able to just use the user defined function block and copy the code from findFFT into it.
Hope that helps
12 Oct 2010
findFFT
findFFT returns fft amplitude and frequency vectors from input data
Author: Bryant Svedin
I love this, but I am having trouble with the cancel function. I can't get the 'ResetCancel' to work. Example
multiWaitbar( 'Task 1', 0, 'CanCancel', 'on' );
for ii=1:15
abort = multiWaitbar('Task 1', ii/15);
if abort
yesno = questdlg('Are you sure you want to cancel?', ...
'Cancel', ...
'Yes','No','No');
if strcmp(yesno,'Yes'), break;
else
pause( 1 )
multiWaitbar('Task 1', ii/15, 'ResetCancel');
end
else
pause( 1 )
end
end
multiWaitbar( 'Task 1', 'Close' );
It gives the following error when this code is run and no is selected after trying to cancel.
??? Error using ==> multiWaitbar>iParseInputs at 276
Additional properties must be supplied as property-value pairs
Error in ==> multiWaitbar at 145
[params,values] = iParseInputs( varargin{:} );
5
15 May 2013
Multi progress bar
A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more.
This waitbar is great!
To make the window always appear in the center of the screen, I modified the 'Resize' section as shown below since I couldn't figure out a way to get the figure handle of the waitbar. Is there any simpler way to do this? I'm new to MatLab, so I'm suspecting that I might have over complicated things.
% Resize
fobj = handle( f );
screenSize = get(0, 'ScreenSize');
xCord = screenSize(3)/2 - 180;
yCord = screenSize(4)/2 - 21;
fobj.Position(1:4) = [xCord yCord 360 42];
setappdata( fobj, 'ProgressEntries', [] );
Comment only
21 Mar 2013
Multi progress bar
A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more.
Comment only