% GETSCREEN captures the screen and returns a struct that could be used to
% make videos or written to an image file using the imwrite.
% For example:
% a = getscreen
% imwrite(a.cdata,'screen.jpg');
% To make a video
% vidObj = VideoWriter('Testvideo.avi');
% open(vidObj);
% for n = 1:100
% image = getframe(gcf);
% writeVideo(vidObj,image);
% end
% close(vidObj)
Cite As
Lateef Adewale Kareem (2026). getscreen (https://in.mathworks.com/matlabcentral/fileexchange/66185-getscreen), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Animation >
Find more on Animation in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
