How do I change a vector from [5 3 2 5 5 4 1 2] to [1 3 4 1 1 2 5 4] switching the scale from 1-5 to 5-1?

10 views (last 30 days)
Matlab textbook problem 2.33

Accepted Answer

James Tursa
James Tursa on 25 Jan 2016
x = [5 3 2 5 5 4 1 2];
y = 6 - x;

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!