Swap double array dimensions

11 visualizaciones (últimos 30 días)
Rona Shaharabani
Rona Shaharabani el 14 de Jun. de 2020
Comentada: Matt J el 14 de Jun. de 2020
I have an 288x384x52 double array which I would like to transform to 288x52x384 double
  1 comentario
Rona Shaharabani
Rona Shaharabani el 14 de Jun. de 2020
Thank you. I tried that, and it did not give an array of 288x52x384 instead

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 14 de Jun. de 2020
Editada: Matt J el 14 de Jun. de 2020
permute(yourArray,[1,3,2])
  4 comentarios
Rona Shaharabani
Rona Shaharabani el 14 de Jun. de 2020
You are right, I just run it again and it did change the array... Thank you so much!
Matt J
Matt J el 14 de Jun. de 2020
You're welcome, but please Accept-click the answer to indicate that your question was resolved.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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