Modify matrix, row vector
Mostrar comentarios más antiguos
I have 3 row vectors, which is defined as y1, y2 and y3. Their dimension is 1*166500. For y1, I want the first value to be zero, for y2, I want first 500 numbers to be zero and for y3, I want first 501 values to be zero, how do I do this? Thanks you!
3 comentarios
James Tursa
el 7 de Dic. de 2017
Editada: James Tursa
el 7 de Dic. de 2017
Are the "0 to 500" the values within y2 that you want to be set to 0? Or are you meaning for them to be indexes of y2 whose elements you want set to 0? Note that MATLAB uses 1-based indexing.
Anh Dao
el 7 de Dic. de 2017
Respuestas (1)
Jos (10584)
el 7 de Dic. de 2017
0 votos
Read the documentation and learn! :D
1 comentario
Anh Dao
el 7 de Dic. de 2017
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!