How do i reverse the order of this

2 visualizaciones (últimos 30 días)
Blair Hall
Blair Hall el 2 de Oct. de 2017
Comentada: Jan el 2 de Oct. de 2017
how do i reverse the order of this
  2 comentarios
KSSV
KSSV el 2 de Oct. de 2017
It is a homework problem...don't attach code snippet as an image.
Jan
Jan el 2 de Oct. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 2 de Oct. de 2017
indexArray = startingIndex:-1:1;

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB 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