How many workspaces are present in matlab??
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi I would like to know How many workspaces are present in matlab??. I know about the base workspace which is the one that is present in matlab desktop screen. But is there any other workspaces available?. if so please let me know what are those and how to access them.
댓글 수: 0
답변 (1개)
Simon
2013년 11월 21일
Hi!
Each function has its own workspace. If you write a function you will have a separate workspace to work in, without the variables from the base workspace.
댓글 수: 3
Marc
2013년 11월 21일
a = 1; b = 2; c = a+b
c1 = simpFunc(b);
In its own file
function c = simpFunc(b)
a = 2; c = a+b; end
See if 'a' changes outside of the function or if c and c1 are equal.
참고 항목
카테고리
Help Center 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!