How to create an array with 2^n using this method?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
David Hill
2019-10-6
I believe it is just describing the sequence.
N=2.^(3:11);
1 个评论
John D'Errico
2019-10-6
In general, please help people to do their homework, rather than doing it for them.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!