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

2 vues (au cours des 30 derniers jours)
Danqi Luo
Danqi Luo le 5 Oct 2019
Commenté : John D'Errico le 6 Oct 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...

Réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by