How to write the correct expression of this function?

1 view (last 30 days)
Hi, So I have v=[5 4 3 2 1] and I have to uses a particular mathematical expression to create the following vector!!
v=[5^5 4^4 3^3 2^2 1^1]
Any suggestions?! Thank you in advance!

Accepted Answer

Roger Stafford
Roger Stafford on 8 Feb 2015
v = v.^v;

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!