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

1 vue (au cours des 30 derniers jours)
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

Réponse acceptée

Les Beckham
Les Beckham le 29 Mar 2020
Change your format spec to
'/Figures/Distance_%d@%.3f.png'
  2 commentaires
Lazaros Christoforidis
Lazaros Christoforidis le 29 Mar 2020
appreciate you, have a good one!
Les Beckham
Les Beckham le 29 Mar 2020
You are quite welcome. Glad I could help.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by