How can I take the element of odd rows of an array (n rows, 1 column) and make a variable with all this elements?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jose Rego
el 21 de Mzo. de 2022
Comentada: Arif Hoq
el 22 de Mzo. de 2022
Hallo all,
I want access to every element located in a odd row an make an array with all of them. For example:
A=(1:20)';
20 Rows and 1 column. So now I want in B every element from odd rows (1,3,5 so on).
For loop?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!