Change the code when it's running
古いコメントを表示
If a matlab script is running, in what situations the modifications of the code will take effects immediately for the running script?
採用された回答
その他の回答 (1 件)
Image Analyst
2016 年 3 月 14 日
0 投票
I don't think that's possible. The "edit and continue" functionality like you have in Microsoft Visual Studio languages does not (yet) exist in MATLAB.
3 件のコメント
Ray Lee
2016 年 3 月 14 日
Image Analyst
2016 年 3 月 14 日
I don't have any idea what that means.
Walter Roberson
2016 年 3 月 14 日
Once a function has been executed, it will be parsed and the parsed version may (and often is) used in preference to changes in the file. If the function encountered any persistent variables then the parsed version will certainly be retained indefinitely. The parsed version of functions without persistent is indefinite, perhaps until memory gets scarce. However, deliberately clearing the function will discard the parsed version. rehash requests can play a role in discarding parsed versions. When the command line is returned to, checks for updates to some locations are done. Note that a gui typically returns to the command line while waiting for user actions in which case the code is not executing.
カテゴリ
ヘルプ センター および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!