% 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)
Citation pour cette source
Lateef Adewale Kareem (2026). getscreen (https://fr.mathworks.com/matlabcentral/fileexchange/66185-getscreen), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2012b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Graphics > 2-D and 3-D Plots > Animation >
En savoir plus sur Animation dans Help Center et MATLAB Answers
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
