How can I change pairs?
Mostrar comentarios más antiguos
I have pairs of A{i}=[ai bi]. How can I change them to pairs B{i}=[bi ai]. I like to use Matlab special features in matrices.
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 23 de En. de 2014
B = mat2cell( fliplr(cell2mat(A)), ones(length(A)), length(A{1});
1 comentario
Categorías
Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!