Screenshot of MATLAB Web App
조회 수: 14 (최근 30일)
이전 댓글 표시
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.
댓글 수: 2
Adrian
2023년 3월 22일
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.
Amos
2024년 12월 13일
Unfortunately, "exportgraphics does not capture most UI components, such as buttons or sliders".
It would be helpful if the above table included rows for webapp-compatibility and -limitations (e.g., for getframe as mentioned in Adrian's comment below).
답변 (1개)
Tushar
2023년 4월 17일
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
Adrian
2023년 4월 17일
편집: Adrian
2023년 4월 17일
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Web App Server에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!