For loope small increments
이전 댓글 표시
I cannot seem to find the solution to this problem. I write a for loop and i tell it to increment by a small value, but instead of starting at 1, it starts at 2.9110 here is the loop
for m=1:.001:4
m
end
does anyone know what its going on? i expect it to start at 1 and increment by .001 every time so that it goes 1.001, 1.002, 1.003 and so on thank you
채택된 답변
추가 답변 (4개)
Paulo Silva
2011년 3월 11일
It works fine here, try this
m=1:.001:4;
What's the first value of the vector m?
marvin corado
2011년 3월 11일
댓글 수: 1
Matt Fig
2011년 3월 11일
Please select a best answer for this question, then start a new one. That way people can search Answers for a specific issue they are having.
marvin corado
2011년 3월 11일
0 개 추천
댓글 수: 1
Matt Fig
2011년 3월 11일
Yes, that way we keep one Question per topic.
카테고리
도움말 센터 및 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!