Borrar filtros
Borrar filtros

Info

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

Moving Specific Values In Matrix By One Column

1 visualización (últimos 30 días)
DANIEL PEARCE
DANIEL PEARCE el 28 de Oct. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have a 3x3 matrix in the form of X = [0 1 0; 0 0 1; 0 1 0]. If a value is equal to one, I want to shift it to the left by one column. So, X' should look something like X' = [1 0 0; 0 1 0; 1 0 0]. I'm having some trouble doing this, so any help would be appreciated. Thanks.

Respuestas (1)

Mayank Bajpai
Mayank Bajpai el 30 de Oct. de 2020
circshift(x,-1,2)

La pregunta está cerrada.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by