saving plots and reopening them

조회 수: 3 (최근 30일)
Christopher
Christopher 2013년 2월 20일
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.

답변 (2개)

Miroslav Balda
Miroslav Balda 2013년 2월 20일
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
Walter Roberson
Walter Roberson 2013년 2월 20일
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()

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2013년 2월 20일
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.

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by