I did something error if I used the same variable name in many functions?
1 次查看(过去 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 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!