Borrar filtros
Borrar filtros

How to change array to be a special matrix ..??

1 visualización (últimos 30 días)
Noru
Noru el 29 de En. de 2013
Let's try with me to solve this problem.
How to change array like example below
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ]
into
Ar2Mat = [ 2 0.5
6 7.3
15 5.6
4 3.3
12 8.2]
i've already tried and just make the matrix like this
Ar2Mat = [ 2 5.6
0.5 4
6 3.3
7.3 12
15 8.2]
Does anyone has the solution..?
thanks

Respuesta aceptada

José-Luis
José-Luis el 29 de En. de 2013
Editada: José-Luis el 29 de En. de 2013
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ];
Ar2Mat = reshape(Ar2Mat,2,5)'
Are you taking the same course as Vishnu?
  1 comentario
Noru
Noru el 30 de En. de 2013
No, I don't taking the same course as Vishnu And thanks for your answer.. :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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