필터 지우기
필터 지우기

Argument of a signal

조회 수: 2 (최근 30일)
Athira Surendran
Athira Surendran 2017년 2월 7일
답변: Walter Roberson 2017년 2월 7일
I've energy-time signal data e(t)having discrete values(file attached). I want to do the following operation:
  • t[5%]=arg(e(t)) at 5% peak value.
  • Plot(t,e(t-t[5%])).
How to write code for this?
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 2월 7일
When you write arg(e(t)) at 5% peak value, do you mean that you want to know the index of the point at which the energy reaches 5% of its peak?

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

답변 (1개)

Walter Roberson
Walter Roberson 2017년 2월 7일
data = xlsread('data.xls');
e = data(:,2);
t = data(:,3);
maxe = max(e);
e5 = maxe * 0.05;
[~, idx5] = min( abs(e - e5) );
t5 = t(idx5);
plot(t(1:end-idx5+1), e(idx5:end))
... I guess. Your notation for what you want to plot is not clear.

카테고리

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