Error Saving figure: Error using sprintf: Conversion to text from matlab.ui.Figure is not possible.
古いコメントを表示
I want to save a figure containing a tiled layout with images, but the following error occurs every time.
"Error using sprintf: Conversion to text from matlab.ui.Figure is not possible. "
Here is some simplified version of the figure:
load('trees.mat')
fig = figure();
tlo = tiledlayout(fig,1,2,"TileSpacing","compact");
nexttile(tlo);
imshow(X,map);
title('A')
nexttile(tlo);
imshow(X,map);
title('B')
I already tried the savefig function and the saveas function.
4 件のコメント
Voss
2023 年 10 月 31 日
Can you show the code where you tried to save the figure (e.g., using savefig or saveas)?
Dyuman Joshi
2023 年 10 月 31 日
編集済み: Dyuman Joshi
2023 年 10 月 31 日
Which line of code gives you the error? And have you copy and pasted the full error message (i.e. all of the red text) ?
It would be better if you can share the code you are working with, as important details about the code seems to have been lost in simplifying it.
Hannes
2023 年 10 月 31 日
Hannes
2023 年 10 月 31 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!