can we run a matlab file without saving it?

30 次查看(过去 30 天)
this question will help you to know about saving a matlab file.

采纳的回答

Shubham Maurya
Shubham Maurya 2016-10-25
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.

更多回答(3 个)

Raúl GB
Raúl GB 2016-10-25
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 2016-10-25
Type control-a (to select everything), then type F9.

Kumar
Kumar 2023-1-29
Yes, you can run a MATLAB file without saving it through the "Run Section"

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by