Adobe illustrator cannot open eps vector figure from matlab

I have saved a figure using "patch" in matlab but when I try to open it in illustrator, I receive the error: "Cannot open because of an unknown error".
I have tried saving it with:
exportgraphics(gcf,'figure.eps','ContentType','vector');
and
print(gcf,'-depsc2','-vector','figure.eps');
I have Matlab 2025a and Adobe Illustrator 2024 (also tried 2026).
Can you help me solve this error?

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Release

R2025a

Asked:

on 31 Mar 2026 at 9:20

Community Treasure Hunt

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

Start Hunting!