Hi,
I would like to create a vector that goes from
[ 2244 2243 2242 ... 4 3 2 1 ]
Is this possible?
Linspace seem only creating a vector [ 1 ; 2 ; 3; ... ]

 채택된 답변

Sean de Wolski
Sean de Wolski 2012년 10월 24일

6 개 추천

v = 2244:-1:1
Use negative one as your increment.

댓글 수: 1

Deanna Yancey
Deanna Yancey 2020년 10월 27일
How do you decrease from say .9 to 1x10^-5 over 100 iterations?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

태그

질문:

2012년 10월 24일

댓글:

2020년 10월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by