MATLAB Answers

can we run a matlab file without saving it?

52 views (last 30 days)
this question will help you to know about saving a matlab file.
  1 Comment
KSSV
KSSV on 25 Oct 2016
Yes you can....but when you run it is automatically saved...

Sign in to comment.

Accepted Answer

Shubham Maurya
Shubham Maurya on 25 Oct 2016
Actually by default, the Matlab asks for saving the file or script with a name followed by .m extension. So, I don't think its possible to run the file without saving it.

More Answers (2)

Raúl GB
Raúl GB on 25 Oct 2016
You can evaluate the current section (ctr+enter) or the current selection (F9), it will run the script or part of the script without saving it. Please note that you cannot evaluate a function unless you specify an input for it.

Image Analyst
Image Analyst on 25 Oct 2016
Type control-a (to select everything), then type F9.

Community Treasure Hunt

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

Start Hunting!

Translated by