필터 지우기
필터 지우기

create a log space vector

조회 수: 2 (최근 30일)
Sean Smith
Sean Smith 2011년 10월 3일
i want to create a log spaced vector consisting of 26 points starting at 2300. my problem is i don't know what the final point is so i can't use logspace (logspace(2300,b,26)) but i don't know what b is. what other command can i use?
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2011년 10월 3일
That is strange. Then, what is the "distance" between your points? You say starting from 2300, what is the value of 2nd, 3rd, etc. points? Do you have any idea?
Sean Smith
Sean Smith 2011년 10월 3일
I'm an idiot i read the question wrong but I am still not sure hot do it. It deals with moore's law about transistors. I need to start at 2300 in 1971 than i need it to double every 2 years until 2008. So i need a vector starting at 2300 and it double 19 times.

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

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 10월 3일
Okay, then I think what you need is:
a=0:19;
b=2.^a;
c=2300*b;
  댓글 수: 1
Sean Smith
Sean Smith 2011년 10월 3일
thanks i appreciate it. if you have time can you look at this question
http://www.mathworks.com/matlabcentral/answers/17249-setting-up-a-step-function
completely lost on it.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by