Borrar filtros
Borrar filtros

Could anyone help me to solve the issue.

2 visualizaciones (últimos 30 días)
jaah navi
jaah navi el 12 de Sept. de 2019
Respondida: madhan ravi el 12 de Sept. de 2019
position =[1 2;
1 3;
2 4;
3 4]
NN= num2cell(position,2)
when i run the code i am getting the result as
NN =
[1x2 double]
[1x2 double]
[1x2 double]
[1x2 double]
but i want to have NN in the following manner
NN=
{1x2 cell}
{1x2 cell}
{1x2 cell}
{1x2 cell}
Could anyone please help me on this.

Respuesta aceptada

madhan ravi
madhan ravi el 12 de Sept. de 2019
NN = num2cell(num2cell(position),2)

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by