How to make a matrix with the entries being the number of even indices of that entry?
Mostrar comentarios más antiguos
I need to make a 12x12 matrix with the entries being the number of even indices of the entry.
So 1,1 would be 0, 1,2 would be 1 and 2,2 would equal 2.
The task is specifically using for loops or the meshgrid function.
Any help would be appreciated.
3 comentarios
madhan ravi
el 13 de Sept. de 2019
What have you tried for your homework?
Joshua Balfour
el 16 de Sept. de 2019
Editada: Joshua Balfour
el 16 de Sept. de 2019
Walter Roberson
el 16 de Sept. de 2019
1-mod(value,2)
Respuestas (1)
Jos (10584)
el 13 de Sept. de 2019
help meshgrid
help rem
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!