MATLAB cannot read or write DXF files.
As a workaround for importing DXF files, you could convert your image into one of the formats currently supported by IMREAD.
As a workaround for exporting DXF files, you could write out your MATLAB image into one of the formats supported by IMWRITE, and then convert this into the DXF format. For a list of supported image formats type "help imread".
Finally, there are several files on the MATLAB Central File Exchange which allow basic DXF file functionality. For more information, please visit the following URL:
Best Answer