MATLAB: Error when printing LiveScript to PDF

livescriptMATLABprint error

MatlabError.PNG
I get this error when I try to print my Matlab Live Script. A similar error occurs when trying to save to PDF. Has anyone encountered this before or know more about this?
Thanks
Scott

Best Answer

I've found a fix for my specific issue. I'm not sure why it was happening, but simply copy/pasting the massive document into separate documents allowed me to print. I'm not sure if I was having compatibility issues since I worked both on Mac and PC for this document. I ended up copy-pasting ~20-30 lines of code/text in the original LiveScript over to another new LiveScript, and the print to PDF worked.
I hope this helps some other poor soul frantically trying to print their homework assignment minutes before the deadline!