Getting 'unexpected end-of-file while reading compressed data' trying to open figure file

I often get the message " unexpected end-of-file while reading compressed data" when trying to open one of my figure files. The file is about 3.5MB and at this point in my script I have already opened a similarly sized file successfully.
The figure that I'm getting an error on is not the largest figure that my script opens. It also looks like I get about 6 of these messages for the figure I'm trying to open.
My script is designed to open two figure files with identical axes (but different data sets), change the axes so that all corresponding axes on each figure have the same limits, and save a PNG copy of the updated figures so I can paste them into a Powerpoint file.
I haven't seen any other references to this message at the Mathworks site, or at MATLAB Central. I found one reference in usenet, but there was no explanation of why the error was happening.

 採用された回答

Jan
Jan 2012 年 9 月 19 日

0 投票

The error occurs, when the file is damaged. Could you try to re-create it?

1 件のコメント

Mirko Musa
Mirko Musa 2016 年 10 月 26 日
Hi Jan,
I am having the same problem. I re-created the files and that works. However, after some time the problem come back again. It is like the file keep getting damaged but without really modifying it. DO you have any idea why? I recently upgrade the OS to Windows 10 and Matlab to 2015b version.

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

その他の回答 (1 件)

Peter
Peter 2012 年 9 月 19 日

0 投票

I can do that, I'm just wondering why it appears to be intermittent.
I should also point out that these figure files are stored on a networked NFS (UNIX) server. I don't know if that makes a difference.

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

製品

タグ

質問済み:

2012 年 9 月 19 日

コメント済み:

2016 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by