Error using export app Export unsuccessful

12 views (last 30 days)
Using uifigure, geoglobe, and geoplot3.
The images are all correct but expertapp does not work. No further error messages.
Thank you.
  1 Comment
James Brown
James Brown on 6 Aug 2021
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');

Sign in to comment.

Accepted Answer

Ananya Tewari
Ananya Tewari on 9 Aug 2021
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');

More Answers (0)

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!