Why does running a script cause a memory error, while running the same script as a function does not?

1 回表示 (過去 30 日間)
I have found that running a script as a script by simply calling it from the command line causes a memory error, yet, running the same script as a function does not. Does anyone know why this is the case?
  5 件のコメント
Arnab Sen
Arnab Sen 2016 年 2 月 23 日
Also can you post the exact error message.
Jos (10584)
Jos (10584) 2016 年 2 月 23 日
How do you run a script as a function? Did you edit the m-file?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by