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

2 ビュー (過去 30 日間)
Danqi Luo
Danqi Luo 2019 年 10 月 5 日
コメント済み: John D'Errico 2019 年 10 月 6 日
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...

回答 (1 件)

David Hill
David Hill 2019 年 10 月 6 日
I believe it is just describing the sequence.
N=2.^(3:11);
  1 件のコメント
John D'Errico
John D'Errico 2019 年 10 月 6 日
In general, please help people to do their homework, rather than doing it for them.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by