If loop not acting properly??
이전 댓글 표시
Hello, just looking for some quick help. How come when I execute this code, the only value for which .003 shows up is the 101st iteration of i?
for i = 1:101
if (i>=84)
a = .003;
elseif (i<84) && (i>=38)
a = 0;
elseif (i<38)
a = -.0065;
end
end
temp_si(i) = a
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 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!