saving plots and reopening them

2 vues (au cours des 30 derniers jours)
Christopher
Christopher le 20 Fév 2013
Hi everyone, when i save a plot using the function h=sprintf('plot%d.jpg,k) it stores the figure but when i try to re open the figure it happenes to be a text file with the text not being english but like windings. Why is this? thanks ahead of time.

Réponses (2)

Miroslav Balda
Miroslav Balda le 20 Fév 2013
Figures stored in *.ppg files can't be opend in MATLAB. If you plan to reopen figures in MATLAB, Y should save them in *.fig files.
  1 commentaire
Walter Roberson
Walter Roberson le 20 Fév 2013
ppg ? PowerPoint Graphics files? The poster did not say anything about PPG files or PowerPoint. The code uses jpg (JPEG) as the extension, and JPEG files can be read into MATLAB using imread()

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 20 Fév 2013
Please show the section of code you are using to do the saving.
Plots are not normally saved as text: they are normally saved as binary. There are a few text formats for plots, but JPEG in particular is a binary format.

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by