Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

say i have a vector with elments say [ 0 1 2 2 3 0 0 0 0 etc], how do i assign a new vector such that 0 becomes 3, 1 becomes 2, 2 becomes 1 and 3 becomes 0.

1 visualizzazione (ultimi 30 giorni)
say i have a vector with elments say [ 0 1 2 2 3 0 0 0 0 etc], how do i assign a new vector such that 0 becomes 3, 1 becomes 2, 2 becomes 1 and 3 becomes 0.

Risposte (1)

madhan ravi
madhan ravi il 13 Mag 2020

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by