select some compenent of vector

2 次查看(过去 30 天)
zina ben
zina ben 2012-6-27
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
V1 = V(4 + (0:3));

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by