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?

 Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 4 Okt. 2020
Bearbeitet: Ameer Hamza am 4 Okt. 2020

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Denoising and Compression finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by