MATLAB: Converting .fig file into 2D .dxf file

dxffigure

Greetings,
I'm trying to save a figure (see attached) made by multiple lines of 2 different colors (red & black) into a 2D .dxf file (of a series of lines). I tried the existing functions DXFLIB and DXFWRITE in the community but can't seem to get them working. Do you guys have any idea on how to get around this, and/or if you have done a similar job?
Thanks in advance!

Best Answer

I think it may be simplest to save the figure as PDF and then use one of the multiple available converters from PDF to DXF.