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!