what is the index variable
조회 수: 3 (최근 30일)
이전 댓글 표시
Consider the execution of the following MATLAB code:
a = 11;
b = 4;
z = 5:5:25;
for k = a:-1:b
if k > 5
z = z - 5; %
elseif k == 3
z = z - 10; %
else
z = z - 4; %
end
end %
% Which is the loop index variable?
댓글 수: 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!