How to repeat indivisual element of a matrix?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Saiem Solimullah
el 17 de Mzo. de 2018
Comentada: Saiem Solimullah
el 21 de Mzo. de 2018
Suppose, i have a matrix a=[1 0 1 1 0 0 1 1] and i want to repeat every element of this matrix by 3 times using for loop . as the new matrix will be b=[1 1 1 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1] . How easily can solve??
0 comentarios
Respuesta aceptada
Más respuestas (1)
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!