Why does my run command disappear once i save a file?

14 ビュー (過去 30 日間)
julien kuhn de chizelle
julien kuhn de chizelle 2015 年 11 月 3 日
コメント済み: Bilal Sadiq 2022 年 3 月 14 日
Hey. So I downloaded matlab however, the program does not let me run the script once I have saved the file. The run button appears at the beginning but once I save the script, it dissappears from the toolbar. Is there any way to fix this problem?
  3 件のコメント
julien kuhn de chizelle
julien kuhn de chizelle 2015 年 11 月 3 日
Hi, before i save the script the run button is there but once i save the script in a .m file the button disappears. How do you run the script using the command window? I only know how to run it using the green play button. I am using MATLAB R2015b
Paolo Castiglione
Paolo Castiglione 2016 年 4 月 21 日
I am experiencing the same problem. Code execution was paused, and I resumed control by pressing CTRL C...

サインインしてコメントする。

回答 (3 件)

Kyle Watters
Kyle Watters 2018 年 2 月 7 日
Try checking that the (.m) extension has been added to the filename. In the windows version this occurs automatically when saving a file, but in the linux version it must be done by the user. The Run button will not appear if the file is not recognized by matlab as executable.

Adam Mazurick
Adam Mazurick 2019 年 2 月 5 日
I had the same problem. Make sure you're in the editor tab.
  1 件のコメント
Bilal Sadiq
Bilal Sadiq 2022 年 3 月 14 日
In linux,you must save the file with .m file ,It resolves the issue
Hope that helps

サインインしてコメントする。


Jan
Jan 2015 年 11 月 3 日
You run a script simply by typing its name (without the extension '.m') in the command window and hit return. Note that Matlab can find the file only, when it is in the current directory or if the folder is contained in the path. See:
doc addpath
doc pathtool
The first steps in Matlab are explained in the "Getting Started" chapters of the documentation.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by