Getting 'unexpected end-of-file while reading compressed data' trying to open figure file
Show older comments
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.
Accepted Answer
More Answers (1)
Peter
on 19 Sep 2012
0 votes
Categories
Find more on Printing and Saving in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!