Error using export app Export unsuccessful

17 ビュー (過去 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 Center および File ExchangeDevelop 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