Based on this excellent screencapture script by Saurabh Kumar: http://www.mathworks.com/matlabcentral/fileexchange/11363-screencapture
Added a function wrapper to make it more convenient, also added options to be able to capture subregions instead of the full screen, and data can be returned as a Matlab image rather than just a file.
Jan Simon noted this implementation by Yair Altman which has many more options:
Chethan Pandarinath (2020). Screen Capture (https://www.mathworks.com/matlabcentral/fileexchange/36391-screen-capture), MATLAB Central File Exchange. Retrieved .
Thank You very much. This will certainly help me a great deal!.:)
Thanks Jan. Actually I've uploaded a new version that does the conversion much faster (using reshape on the original matrix, as you suggest). Hopefully the system will update the file soon.
For a faster conversion see Yair's implementation and the comments for http://www.mathworks.com/matlabcentral/fileexchange/24323-screencapture-get-a-screen-capture-of-a-figure-frame-or-component
Inspired by: screencapture
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!