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?

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 4 de Oct. de 2020
Editada: Ameer Hamza el 4 de Oct. de 2020
n = 0:100;
y = (2.^n)./(2*n);

2 comentarios

SENLIN YUE
SENLIN YUE el 4 de Oct. de 2020
Thanks!
Ameer Hamza
Ameer Hamza el 4 de Oct. de 2020
I am glad to be of help!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Denoising and Compression en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Oct. de 2020

Comentada:

el 4 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by