How do u check for the existence of a variable in base workspace from main GUI file?
조회 수: 7 (최근 30일)
이전 댓글 표시
How do u check for the existence of a variable in base workspace from main GUI file?
댓글 수: 0
답변 (1개)
the cyclist
2013년 4월 25일
편집: the cyclist
2013년 4월 25일
I am not very knowledgeable about GUIs, so there is almost certainly a better way, but one way to do this would be with the evalin() function. Specifically, I think you could check for the existence of the variable x with
>> tf = evalin('base','exist(''x'')')
Type
>> doc evalin
for details.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!