How to extract a part of a given vector and store it in a new vector using loops (for loop) ?
Mostrar comentarios más antiguos
Given vector: [1 2 3 4 5 6 7 8 9 10];
New vector, let's say: [4 5 6 7].
2 comentarios
Azzi Abdelmalek
el 21 de Oct. de 2013
Editada: Azzi Abdelmalek
el 21 de Oct. de 2013
Is it homework? If yes, what have you tried so far?
Zack Shane
el 21 de Oct. de 2013
Editada: Azzi Abdelmalek
el 21 de Oct. de 2013
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 21 de Oct. de 2013
Editada: Image Analyst
el 21 de Oct. de 2013
data2 = data1(seg1:seg2); % Extract indexes seg1 through seg2 into new vector.
1 comentario
Zack Shane
el 21 de Oct. de 2013
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!