How to show variables in output when publishing code?

3 views (last 30 days)
I want to show a variable that I have in my workspace in the output when publishing my code, and I'm getting an undefined variable error when publishing. The variable is saved in a workspace that is loaded at the beginning of the code...and i want the user to be able to see that variable as an illustrative example.
Thanks for any help in advance!

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!