MATLAB: How to write the correct expression of this function

matlab functionsimpowersystemsvectors

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!

Best Answer

v = v.^v;