Filter löschen
Filter löschen

Descending values in vector...

90 Ansichten (letzte 30 Tage)
Lizan
Lizan am 24 Okt. 2012
Kommentiert: Deanna Yancey am 27 Okt. 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; ... ]

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by