How do i reverse the order of this

2 ビュー (過去 30 日間)
Blair Hall
Blair Hall 2017 年 10 月 2 日
コメント済み: Jan 2017 年 10 月 2 日
how do i reverse the order of this
  2 件のコメント
KSSV
KSSV 2017 年 10 月 2 日
It is a homework problem...don't attach code snippet as an image.
Jan
Jan 2017 年 10 月 2 日
@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.

サインインしてコメントする。

採用された回答

Andrei Bobrov
Andrei Bobrov 2017 年 10 月 2 日
indexArray = startingIndex:-1:1;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by