Borrar filtros
Borrar filtros

Info

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

swap matrix positions in 3d matrices

2 visualizaciones (últimos 30 días)
Jam
Jam el 17 de En. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
How do I swap matrix positions? So if I wanted
a(1,1,:) = [1 2 3 4];
a(1,2,:) = [1 1 1 1];
to become
a(1,1,:) = [1 1 1 1];
a(1,2,:) = [1 2 3 4];
  1 comentario
Jan
Jan el 17 de En. de 2013
Such questions are discussed exhaustively in the Getting Started chapters of the documentation. It is recommended to read them.

Respuestas (2)

Andrei Bobrov
Andrei Bobrov el 17 de En. de 2013
Editada: Andrei Bobrov el 17 de En. de 2013
a(1,1:2,:) = a(1,[2,1],:);

Colin
Colin el 17 de En. de 2013
a(1,[1 2],:) = a(1,[2 1],:);

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by