what do symbols like "nn" and "kk" do in a MATLAB script?
조회 수: 6 (최근 30일)
이전 댓글 표시
For example, what does the following portion of a script mean/do?
for kk = 1:size(session,1)
dara_folder{kk} = strcat("whatever name you want for that folder");
end
댓글 수: 0
답변 (1개)
Star Strider
2017년 2월 1일
The ‘kk’ is simply the variable name for a loop counter in this code. (Any valid variable name will work.) See the documentation on for (link) loops for a full explanation.
댓글 수: 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!