copy some cells from 1x10 array to another array
Mostrar comentarios más antiguos
I have got the following: x = [1 3 5 7 9 10 11 12 13 14]; and I would like to make a new table which will contain only the odd cell content. This means I would like to have a table looking like that: x_1 = [1 5 9 11 13];
Is there an easy way to do that besides using a for loop? If not, how can I perform this into a for loop?
1 comentario
Stephen23
el 31 de Ag. de 2018
"Is there an easy way to do that besides using a for loop?"
By doing the MATLAB introductory tutorials, which show how basic indexing works:
Respuesta aceptada
Más respuestas (1)
Alex Apostolou
el 31 de Ag. de 2018
0 votos
Categorías
Más información sobre Multidimensional Arrays 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!