Hi,
You can do this by clicking on Hide Code button and then Export to PDF. You can find the Hide Code button on the right of the Live Editor window.
![hidecode.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/260732/hidecode.png)
Hope that helps
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!