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

1 次查看(过去 30 天)
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'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by