Borrar filtros
Borrar filtros

Eye command with a matrix

5 visualizaciones (últimos 30 días)
marie el 20 de Feb. de 2013
Use the eye command to create the array A shown on the left below. Then use the
colon to address elements in the arrays and the eye command to change A to match the array
shown on the right.
So far I have tried
to match the array i did
B=[A eye(7,0)]
  7 comentarios
Santosh el 20 de Feb. de 2013
colon is a vectorization operator whose usage is m:n. :3 here is not correct.
marie el 20 de Feb. de 2013
I got it thank you!

Iniciar sesión para comentar.

Respuestas (0)


Más información sobre Shifting and Sorting Matrices 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!

Translated by