Info

This question is closed. Reopen it to edit or answer.

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 view (last 30 days)
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.

Answers (1)

madhan ravi
madhan ravi on 13 May 2020

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!