About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconSTOPLOOP (v1.0, jun 2008) (Scripts) Publisher's description

STOPLOOP - creates stop button to have a user interrupt a loop

STOPLOOP - creates stop button to have a user interrupt a loop

FS = STOPLOOP creates a message box window and returns a structure FS that
holds two functions, called FS.Stop and FS.Clear. The function FS.Stop()
will return true, if the OK button has been clicked (or the message box
has been removed), so that a loop can be interrupted.

The function FS.Clear() can be used to remove the message box, if a loop has ended without user interruption.

FS = STOPLOOP(STR) uses the string STR to display instead of the default
'Stop the Loop'.

tic ; % We will measure elapsed time in a loop
% Set up the stop box:
FS = stoploop({'Stop me before', '5 seconds have elapsed'}) ;
% Display elapsed time
fprintf('nSTOPLOOP: elapsed time (s): %5.2fn',toc)
% start the loop
while(~FS.Stop() && toc < 5), % Check if the loop has to be stopped
fprintf('%c',repmat(8,6,1)) ; % clear up previous time
fprintf('%5.2fn',toc) ; % display elapsed time
FS.Clear() ; % Clear up the box
clear FS ; % this structure has no use anymore

Version 1.0, jun 2008
Inspired by several posts on the FEX on "how to interrupt a loop?"

System Requirements:

MATLAB 7.0.1 (R14SP1)
Program Release Status: New Release
Program Install Support: Install and Uninstall

STOPLOOP (v1.0, jun 2008) (Scripts) Tags:

Click on a tag to find related softwares

Is STOPLOOP (v1.0, jun 2008) (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.