필터 지우기
필터 지우기

How to create a sequence.

조회 수: 14 (최근 30일)
Lord Chinex
Lord Chinex 2014년 7월 23일
답변: Morm My 2021년 7월 29일
I need to create a vector that holds a sequence. In the sequence the previous number is multiplied by 2. The sequence could stop at a desired number lets say 256 (but it could be a bigger number). How would one go about this?
Example sequnce = 2,4,8,16,32,...,256. vector = [2;4;8;16;32;64;128;256]
vector =
2
4
8
16
32
64
128
256

채택된 답변

Sean de Wolski
Sean de Wolski 2014년 7월 23일
  댓글 수: 5
Sandie Nhatien Vu
Sandie Nhatien Vu 2016년 8월 5일
Thanks a lot!
Simon Siu
Simon Siu 2020년 2월 5일
how to you know that!!!!!!!!!!!!!!!?????

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Morm My
Morm My 2021년 7월 29일
thank you very much sir.

카테고리

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