Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
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.

Antworten (1)

madhan ravi
madhan ravi am 13 Mai 2020

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by