Search code examples
matlabpdfexportfigure

Can't export figure in matlab


So I tried to export a .fig I had saved a few months ago into a .pdf.

Whenever I click on file->save as and choose the .pdf type I get this error:

Undefined function 'printCallback' for input arguments of type 'matlab.graphics.shape.internal.PointDataTip'

I get the same error when using hgexport(myFig,'myFig.pdf') manually.


Solution

  • Ok it works now.

    The Problem was, that I had selected a data point in the figure with my cursor. After deselecting the point it worked.

    I personally didn't find anything about this issue on the internet, might be interesting for others maybe...