フィルターのクリア

when a save figure , the numbers appear in the name of the png with e+0X

1 回表示 (過去 30 日間)
Lazaros Christoforidis
Lazaros Christoforidis 2020 年 3 月 29 日
コメント済み: Les Beckham 2020 年 3 月 29 日
e.g. oo=1; tspend(oo,1)=10.472;
saveas(fig1,[pwd sprintf('/Figures/Distance_%d@%d.png',oo,tspend(oo,1))]);
%The png saved as: Distance_1@1.047200e+01.png
%I wanted to displayed as: Distance_1@10.472.png

採用された回答

Les Beckham
Les Beckham 2020 年 3 月 29 日
Change your format spec to
'/Figures/Distance_%d@%.3f.png'
  2 件のコメント
Lazaros Christoforidis
Lazaros Christoforidis 2020 年 3 月 29 日
appreciate you, have a good one!
Les Beckham
Les Beckham 2020 年 3 月 29 日
You are quite welcome. Glad I could help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by