MATLAB: How to save the MATLAB work and notes onto a PDF file or Google Doc

google docsnotespdfsavesaving workword doc

I am currently learning MATLAB using online tutorials through YouTube and Coursera. As I watch these tutorials, I follow along in MATLAB Online for practice. Is there a way for me to save my work in MATLAB in Google Doc, PDF, or even a word doc so that I can type my notes into the same file and share it with others?

Best Answer

Try this for PDF:
publish('filename.m','pdf')