how to access workspace variablle in loop?
조회 수: 5 (최근 30일)
이전 댓글 표시
i have workspace variable and want to use it in for loop
댓글 수: 0
답변 (2개)
ES
2014년 1월 22일
If it is an m script, you can use the workspace variable directly by calling its name.
if it is an m function, then prior to calling the function, save the variables in a matfile and load it in your function.
By the way, who generates the variables in the workspace?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!