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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by