필터 지우기
필터 지우기

vector

조회 수: 5 (최근 30일)
lowcalorie
lowcalorie 2012년 5월 12일
i have a vector
X = [.00000;.00001;.00002;.00003;.00004;.00005;.00006;.00007;.00008;.00009;];
i need to do X/(X-1) value not 1 the number
(x-1) needs to equal a value to the left of X
example .00002/.00001
  댓글 수: 1
Image Analyst
Image Analyst 2012년 5월 12일
Realize that X(2)/X(1) will work but its value will be inf (infinity).

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

답변 (1개)

Oleg Komarov
Oleg Komarov 2012년 5월 12일
Manually:
X(2:end)./X(1:end-1)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by