How do i reverse the order of this

2 Ansichten (letzte 30 Tage)
Blair Hall
Blair Hall am 2 Okt. 2017
Kommentiert: Jan am 2 Okt. 2017
how do i reverse the order of this
  2 Kommentare
KSSV
KSSV am 2 Okt. 2017
It is a homework problem...don't attach code snippet as an image.
Jan
Jan am 2 Okt. 2017
@Blair: Your screenshot does not even contain the question, but it is very easy to guess the solution: Why do you use "1:1:3"? Where is the "startingIndex"? It is obvious, that it is required to use it.
It will not help, if the forum solves your homework. You cannot learn programming by letting others find these very easy solutions for you. Try it by your own until you have success.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 2 Okt. 2017
indexArray = startingIndex:-1:1;

Weitere Antworten (0)

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by