Recently, while preparing a GUI function for submission to the file exchange I wanted to capture a screenshot, but I couldn't easily do it because the GUI function is modal and I couldn't run getframe from the command line. So, I wrote Snapshot. It facilitates taking a screenshot of a modal GUI figure or any other figure for that matter. It's very easy to use and the image is placed in a variable in the base workspace.
Douglas Schwarz (2021). Snapshot (https://www.mathworks.com/matlabcentral/fileexchange/10846-snapshot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!