Swapping columns in a 375x91x223 variable
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ajk1
el 1 de Jul. de 2016
Comentada: ajk1
el 2 de Jul. de 2016
Hi, I have a variable called 'vol' that is 375 x 91 x 223 and I would like the output to be 375 x 223 x 91. I have previously rehaped this and used:
vol=reshape(vol,[375 91 223]); %from prior part of my code
vol(:,[2 3]) = vol(:,[3 2])
Your help would be appreciated thanks.
0 comentarios
Respuesta aceptada
the cyclist
el 1 de Jul. de 2016
Editada: the cyclist
el 1 de Jul. de 2016
vol = permute(vol,[1 3 2]);
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical 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!