select some compenent of vector

Asked by zina ben on 27 Jun 2012
Latest activity Commented on by Sean de Wolski on 27 Jun 2012

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

0 Comments

zina ben

Products

No products are associated with this question.

1 Answer

Answer by Andrei Bobrov on 27 Jun 2012
V1 = V(4 + (0:3));

1 Comment

Sean de Wolski on 27 Jun 2012

v(4:7)

Andrei Bobrov

Contact us