Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

covert into 3D array

1 visualización (últimos 30 días)
Tha saliem
Tha saliem el 15 de Abr. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
hey i have a 2D array having many elements like this:
y=[4,1,1; 4,1,1; 4,1,1; 3,1,1; 4,1,-1; 3,1,-1; 4,1,1]
& a cell array:
x{1,1}={4;4}
x{2,1}{4;[3;4];[3;4]}
i want to compare elements of x with 1st column of y and convert that array into a 3D array accordingly.
thanks in advance.
  1 comentario
Tha saliem
Tha saliem el 15 de Abr. de 2017
result(:,:,1)=[4,1,1]
result(:,:,2)=[4,1,1]
result(:,:,3)=[4,1,1]
result(:,:,4)=[3,1,1;4,1,-1]
result(:,:,5)=[3,1,-1;4,1,1]

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by