I recently encountered code that addresses a vector as V(a:b:c). Not sure what this does. I am used to V(a:b).

 채택된 답변

Andrew Newell
Andrew Newell 2015년 2월 22일

0 개 추천

댓글 수: 1

Dave Mackidd
Dave Mackidd 2015년 2월 23일
Thanks to Andrew and Azzi. Very helpful.
Dave

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

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2015년 2월 21일

0 개 추천

Example
V=[1 10 20 5 30 45]
V(1:2:5)
Check the result

카테고리

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

질문:

2015년 2월 21일

댓글:

2015년 2월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by