How to write the correct expression of this function?

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!

 採用された回答

Roger Stafford
Roger Stafford 2015 年 2 月 8 日

1 投票

v = v.^v;

1 件のコメント

Stephen23
Stephen23 2015 年 2 月 8 日
This gives the right answer :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by