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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by