フィルターのクリア

Everytime i type in editor window, nothing comes out of the command window.

8 ビュー (過去 30 日間)
Jimmy
Jimmy 2023 年 3 月 15 日
回答済み: Jan 2023 年 3 月 15 日
Everytime i type in editor window, nothing comes out of the command window. For example when i type x = 3 it just goes to the next line and command window doesn't say the answer.
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 3 月 15 日
You need to run your script to execute whatever code you have written. There's a green triangle on the Editor panel, beneath which 'Run' is written, pressing that will run your script.
However, that won't guarantee the value of any variable to be displayed on the command window, if you have suppressed the output by using a semi-colon. You need to type the variable name and press enter to find the assigned value.

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

採用された回答

Jan
Jan 2023 年 3 月 15 日
The editor is a tool to write scripts and functions. You save them as files, which can be called from other scripts or functions or from the command window.
If you type "x=3" in the editor, there is no result, because this creates a text file only. Results are produced, when the text file is executed only. So the editor is not the command window.
To learn the basics use the free online tutorial: https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by