Borrar filtros
Borrar filtros

Descending values in vector...

90 visualizaciones (últimos 30 días)
Lizan
Lizan el 24 de Oct. de 2012
Comentada: Deanna Yancey el 27 de Oct. de 2020
Hi,
I would like to create a vector that goes from
[ 2244 2243 2242 ... 4 3 2 1 ]
Is this possible?
Linspace seem only creating a vector [ 1 ; 2 ; 3; ... ]

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 24 de Oct. de 2012
v = 2244:-1:1
Use negative one as your increment.
  1 comentario
Deanna Yancey
Deanna Yancey el 27 de Oct. de 2020
How do you decrease from say .9 to 1x10^-5 over 100 iterations?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by