Externally Stopping an Ongoing Iterating Scripting
- Internal function stops includes: 'break', 'pause', etc. doesn't help with our goal, that the decision of stopping the execution is subjective.
- 'isOpen' condition is only applicable to a pcplayer, or vision.DeployableVideoPlayer object, not a general process.
- 'input' and 'keyboard' prompt for an input in every iteration so they are inefficient.
- 'waitforbottonpress' prompts for an input in every iteration. Although this problem can be circumvented by verifying the existence of the return variable, 'waitforbottonpress' pops out a figure window no matter if you want it or not. Also, the excited input is clicking and any keyboard press so it is too sensitive.
- 'uicontrol' and other ui related function are not applicable if we don't need a ui.
- Walter Roberson recommended PsychToolbox. Though this is a powerful toolbox, we just need one function from the entire toolbox.
Cite As
Xingze Dai (2026). Externally Stopping an Ongoing Iterating Scripting (https://github.com/Xngzdai/External_Stop_of_Iterating_Scripts/releases/tag/v1.0.5), GitHub. Retrieved .
https://www.mathworks.com/matlabcentral/answers/2081-how-to-execute-two-matlab-scripts-simultaneously
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.5 | See release notes for this release on GitHub: https://github.com/Xngzdai/External_Stop_of_Iterating_Scripts/releases/tag/v1.0.5 |
||
| 1.0.4 | See release notes for this release on GitHub: https://github.com/Xngzdai/External_Stop_of_Iterating_Scripts/releases/tag/v1.0.4 |
||
| 1.0.3 | See release notes for this release on GitHub: https://github.com/Xngzdai/External_Stop_of_Iterating_Scripts/releases/tag/v1.0.3 |
||
| 1.0.2 | Update text file for stop condition |
||
| 1.0.1 | Include text file sample |
||
| 1.0.0 |
