Screenshot of MATLAB Web App

8 vues (au cours des 30 derniers jours)
C. K.
C. K. le 21 Mar 2023
Modifié(e) : Adrian le 17 Avr 2023
Hi,
do you know a way to take a screenshot of a MATLAB Web App
The functions exportapp, exportgraphics, ... aren't supported in Web Apps.
  1 commentaire
Adrian
Adrian le 22 Mar 2023
While I can't answer your question - I'm looking for an alternative to exportapp as well, exportgraphics is actually supported in Webapps. You need to do it like
exportgraphics(axes, filename);
web(filename)
and then filename is getting downloaded in your browsers standard download path.

Connectez-vous pour commenter.

Réponses (1)

Tushar
Tushar le 17 Avr 2023
Hi,
Starting in Matlab r2020b, you can take snapshots of an app / uifigure using the functions below.
Refer to the below article to get more info:
Hope it helps!!
  1 commentaire
Adrian
Adrian le 17 Avr 2023
Modifié(e) : Adrian le 17 Avr 2023
exportapp is not supported in MATLAB Online™ or in Web Apps (MATLAB Compiler).
getframe does not support the following functionality in MATLAB Online™ or in Web Apps (MATLAB Compiler):
  • Capturing the contents of a figure created with the uifigure function or any axes in the figure.
  • Capturing the contents of an app created with App Designer or any axes in the app.
Exportapp is even mentioned in the question itself as not supported in Webapps.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Web App Server dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by