Using epscombine with 2014b?
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to run epscombine.m with Matlab 2014b, but I keep getting the following error message:
Undefined function or variable "beginobject".
Error in epscombine (line 65)
for line = beginobject:length(text2{:})
Equivalently, "endobject" doesn't seem to be defined either. I'm guessing it has something to do with the new graphics setup, but I can't pinpoint the problem. The separate eps files (the vector and bitmap graphics) are generated just fine, but combining them leads to these errors. Can someone help with the routine, or propose an alternative routine/command to use? Thanks.
2 个评论
Doug Hull
2014-11-21
Rather than rely on a File Exchange contibution to get you what you need, I wonder if you are better off now doing this in MALTAB directly.
What are you trying to accomplish with EpsCombine? It might be better supported in the new R2014b graphics system.
回答(1 个)
Richard Quist
2015-4-1
The epscombine utility is looking for text that isn't present in EPS files generated in R2014b, which leads to the error you are getting.
As Doug mentioned, you may be able to get what you want from MATLAB directly without using that utility.
Prior to R2014b, MATLAB would often generate an EPS file with an embedded image, rather than a file that was fully vectorized; even if you used the -painters option with the print command more complicated scenes were still exported as an image. This resulted in poor scaling as the output file was resized, and text often suffered as a result.
In R2014b, MATLAB will usually produce a truly vectorized file when printing/exporting to EPS (or any of the other vector formats, like PDF). It will still produce a file containing an image if the scene is deemed too complex, but if you specify the -painters option that will be honored, and the resulting file will contain the vector instructions and not an image.
I hope that helps.
Rich
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!