hi there are two m.files,but what are they different ? ths u

 採用された回答

Stephen23
Stephen23 2017 年 4 月 19 日
編集済み: Stephen23 2017 年 4 月 19 日

0 投票

Some beginners think that they are the same, but they are not: the top one is a script, the bottom one is a function:
And in general, scripts are great for playing around, but are useless for doing any real work (i.e. any code that you actually want to be reliable and get results from):

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeFiles and Folders についてさらに検索

タグ

質問済み:

2017 年 4 月 19 日

編集済み:

2017 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by