Borrar filtros
Borrar filtros

change array into matrix

5 visualizaciones (últimos 30 días)
Anusha
Anusha el 1 de Feb. de 2014
Comentada: Anusha el 1 de Feb. de 2014
How to write a 4 values in rectangular grid a=[8 4 6 2]
it will become
a=
8 4
6 2

Respuesta aceptada

Mischa Kim
Mischa Kim el 1 de Feb. de 2014
Editada: Mischa Kim el 1 de Feb. de 2014
Use the reshape command.
b = reshape(a,2,2)
  3 comentarios
Mischa Kim
Mischa Kim el 1 de Feb. de 2014
Is this another question or are you confirming that the command does what you need it to do?
Anusha
Anusha el 1 de Feb. de 2014
if i have a array with 50 numbers how it will be converted into rectangular matrix

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images 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