How to create an array with 2^n using this method?

2 visualizaciones (últimos 30 días)
Danqi Luo
Danqi Luo el 5 de Oct. de 2019
Comentada: John D'Errico el 6 de Oct. de 2019
In my homework, I'm asked to create an array of 8,16,32,...,2048 using the way :
N=[8 16 32 ??? 2048]
what could be the ??? here? Any operator? Not familiar with matlab...

Respuestas (1)

David Hill
David Hill el 6 de Oct. de 2019
I believe it is just describing the sequence.
N=2.^(3:11);
  1 comentario
John D'Errico
John D'Errico el 6 de Oct. de 2019
In general, please help people to do their homework, rather than doing it for them.

Iniciar sesión para comentar.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by