Azzera filtri
Azzera filtri

Descending values in vector...

90 visualizzazioni (ultimi 30 giorni)
Lizan
Lizan il 24 Ott 2012
Commentato: Deanna Yancey il 27 Ott 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; ... ]

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by