diff --git a/demos/disableBar.m b/demos/disableBar.m new file mode 100644 index 0000000..d3fe9ca --- /dev/null +++ b/demos/disableBar.m @@ -0,0 +1,24 @@ +% This script will show how the bar can be programmatically disabled. +% +% Author: J.-A. Adrian (JA) +% + +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