필터 지우기
필터 지우기

what is the correct formula of (sum of ...from...to...) in matlab

조회 수: 1 (최근 30일)
Good mind
Good mind 2017년 4월 27일
댓글: Good mind 2017년 4월 30일
snrin=(-5:5:55); %initial snr
N=length(ecg); % length of ecg signal
n=(0:N-1);
e=sum (ecg^2) from 0 to N-1; **% I want to write this formula correctly**
f=sum (W^2) from 0 to N-1; *% also this*
A=sqrt(e/(10^(snrin/10))*f); *% also this one*
  댓글 수: 2
James Tursa
James Tursa 2017년 4월 27일
How is the indexing from 0 to N-1 related to the variable "ecg"? I.e., what would an index of 0 mean? Same question for the other sums.
Good mind
Good mind 2017년 4월 27일
ECG is a signal sampled with 360hz. 0 to N-1 i.e means along the length of ecg signal

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

채택된 답변

Walter Roberson
Walter Roberson 2017년 4월 27일
e = sum( ecg(1+n).^2 );
f = sum( W(1+n).^2 );
  댓글 수: 7
Walter Roberson
Walter Roberson 2017년 4월 30일
ecgnoisy = repmat(ecg(:), 1, length(A)) + repmat(W(:), 1, length(A)) .* repmat(A, numel(W), 1);
Good mind
Good mind 2017년 4월 30일
thank you so much

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by