Count from 1 to 0 with increment of 0.01
조회 수: 16 (최근 30일)
이전 댓글 표시
Hello, I am trying to make a list and count from 1 to 0 with the increment of 0.01, but I am only getting out
x = 0×1 empty double column vector
I am using this: x = [1 : 0.01 : 0]
It works fine if I do 0 : 0.01 : 1
댓글 수: 0
답변 (1개)
Walter Roberson
2021년 10월 15일
You need to use a negative increment to count down from a higher value to a lower value.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!