switching elements in a vector
Mostrar comentarios más antiguos
I have a numerical vector made of ones and zeros. I would like to switch the ones and the zeros. I tried by creating a new vector vector_6 = vector_5 and then vector_6(0==1) but it gave me back an empty vector. What am I doing wrong?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Aerospace Blockset en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!