How can I display ans in a generated PDF?
Show older comments
I'm doing a MatLab project for a class, and we're supposed to generate a PDF from our m files that show the output of our code. I've tried generating a PDF, and it will display the graphs I make, but the answers to expressions don't show up. For example, in the Command Window, if I type 5*8, ans = 40 will appear. However, in the generated PDF, it would only show 5*8 without showing the output. I tried setting "Evaluate code" to true in the publishing settings, but that didn't help.
If it's relevant, I've declared some vectors and am trying to have the PDF display the results when I dot and cross them.
Any suggestions are greatly appreciated. Thank you!
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!