How to run all codes in single .m file??

3 views (last 30 days)
sindhura c
sindhura c on 7 Oct 2018
Commented: Rik on 10 Oct 2018
suppose i have three different problems to be executed in matlab, and i want them to be in single .m file. How to do that? I want to see all the output images or data at a one time click.

Answers (1)

Rik
Rik on 7 Oct 2018
You can either have a function at the top that runs internal functions, or you can just put all the code in a single script or function.
  1 Comment
Rik
Rik on 10 Oct 2018
Did this suggestion solve your problem? If so, please consider marking it as accepted answer. It will make it easier for other people with the same question to find an answer. If this didn't solve your question, please comment with what problems you are still having.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!