select some compenent of vector

Hello!
Ihave this vector:
V = [1 2 3 4 5 6 7 8 9]'
i need just to used
V1 = [ 4 5 6 7 ]
what can i do
please help me. Thanks in advence

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2012년 6월 27일

0 개 추천

V1 = V(4 + (0:3));

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

질문:

2012년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by