How can I form a vector operating with another?

I'm trying to do the operaton (2^n)/2n with n=(0:100)
how can I form a vector of the same size using the results?

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 10 月 4 日
編集済み: Ameer Hamza 2020 年 10 月 4 日

0 投票

n = 0:100;
y = (2.^n)./(2*n);

2 件のコメント

SENLIN YUE
SENLIN YUE 2020 年 10 月 4 日
Thanks!
Ameer Hamza
Ameer Hamza 2020 年 10 月 4 日
I am glad to be of help!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDenoising and Compression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by