Borrar filtros
Borrar filtros

Count from 1 to 0 with increment of 0.01

19 visualizaciones (últimos 30 días)
Marius Hegnastykket
Marius Hegnastykket el 15 de Oct. de 2021
Respondida: Walter Roberson el 15 de Oct. de 2021
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

Respuestas (1)

Walter Roberson
Walter Roberson el 15 de Oct. de 2021
You need to use a negative increment to count down from a higher value to a lower value.

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by