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

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...

Antworten (1)

David Hill
David Hill am 6 Okt. 2019

0 Stimmen

I believe it is just describing the sequence.
N=2.^(3:11);

1 Kommentar

In general, please help people to do their homework, rather than doing it for them.

Melden Sie sich an, um zu kommentieren.

Tags

Gefragt:

am 5 Okt. 2019

Kommentiert:

am 6 Okt. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by