Skip to content

Commit

Permalink
New demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JAAdrian committed Feb 28, 2021
1 parent 798013b commit c1ea16c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions demos/disableBar.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
% This script will show how the bar can be programmatically disabled.
%
% Author: J.-A. Adrian (JA) <jensalrik.adrian AT gmail.com>
%

clear;
close all;

addpath('..');

numIterations = 25;


%% This Will Show the Bar
for iIteration = progress(1:numIterations)
pause(0.1);
end


%% This Will Disable the Bar
for iIteration = progress(1:numIterations, 'IsActive', false)
fprintf('New iteration...\n');
pause(0.1);
end

0 comments on commit c1ea16c

Please sign in to comment.