Count from 1 to 0 with increment of 0.01
13 ビュー (過去 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!