How do i reverse the order of this

2 views (last 30 days)
how do i reverse the order of this
  2 Comments
KSSV
KSSV on 2 Oct 2017
It is a homework problem...don't attach code snippet as an image.
Jan
Jan on 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.

Sign in to comment.

Accepted Answer

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

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!