Error using export app Export unsuccessful

조회 수: 16 (최근 30일)
James Brown
James Brown 2021년 8월 5일
댓글: Dinesh 2024년 1월 5일
Using uifigure, geoglobe, and geoplot3.
The images are all correct but expertapp does not work. No further error messages.
Thank you.
  댓글 수: 1
James Brown
James Brown 2021년 8월 6일
This simple code fails. Is this a bug?
uif = uifigure;
g = geoglobe(uif);
geoplot3(g,[-60 -70],[120 140],[900000 900000]);
exportapp(uif,'test.jpg');

댓글을 달려면 로그인하십시오.

채택된 답변

Ananya Tewari
Ananya Tewari 2021년 8월 9일
Hi,
The geoplot3 returns a Line Object and unlike most Line objects, lines created using geoplot3 cannot have their parent changed to any object except a geographic globe. I tried exporting the uif as a pdf and was able to do so. Please refer to the code below.
uif = uifigure;
g = geoglobe(uif);
geoplot3(g,[-60 -70],[120 140],[900000 900000]);
exportapp(uif,'test.pdf');
  댓글 수: 1
Dinesh
Dinesh 2024년 1월 5일
Hi Ananya. The PDF file is created, but it's blank. Did you also observe similar behavior? I'm trying to understand if this "blank" issue did not occur in earlier versions of MATLAB.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by