How to create an array with 2^n using this method?
2 views (last 30 days)
Show older comments
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...
0 Comments
Answers (1)
David Hill
on 6 Oct 2019
I believe it is just describing the sequence.
N=2.^(3:11);
1 Comment
John D'Errico
on 6 Oct 2019
In general, please help people to do their homework, rather than doing it for them.
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!