How to define a sequence that goes two directions
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Abid Manzar
el 15 de Sept. de 2021
Comentada: Abid Manzar
el 16 de Sept. de 2021
I have to write a Program that, among other things, defines a matrix and asks me to, in one line, assign the values, 12 6 0 -6 -12 12 18 24 30 36, to one row. I was thinking I should use the "x:1:y" type of command but I don't know how to make it go two directions in one command.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing 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!