How do i reverse the order of this

2 vues (au cours des 30 derniers jours)
Blair Hall
Blair Hall le 2 Oct 2017
Commenté : Jan le 2 Oct 2017
how do i reverse the order of this
  2 commentaires
KSSV
KSSV le 2 Oct 2017
It is a homework problem...don't attach code snippet as an image.
Jan
Jan le 2 Oct 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.

Connectez-vous pour commenter.

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 2 Oct 2017
indexArray = startingIndex:-1:1;

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by