I did something error if I used the same variable name in many functions?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi All,
I have four functions and I called them one after one, did I do something error if I used the same variable name in these four functions? What MATLAB community suggest?
0 件のコメント
採用された回答
Dishant Arora
2014 年 3 月 20 日
They will be local to the function they are defined in. All the functions have a different workspace, so it won't create any conflicts as long as you are comfortable with it.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!