필터 지우기
필터 지우기

Neglect datapoints for a plot

조회 수: 1 (최근 30일)
T
T 2012년 10월 18일
Suppose I have this signal that ranges from 2000-7000 seconds and I want to neglect everything after 7000 seconds because it remains a constant value. How would I do this?

채택된 답변

Star Strider
Star Strider 2012년 10월 19일
If you have a time vector t corresponding to your signal vector f:
t_idx = find(t <= 7000);
f1 = f(t_idx);
t1 = t(t_idx);
Using f1 and t1 avoids overwriting your original f and t vectors.
  댓글 수: 3
Walter Roberson
Walter Roberson 2012년 10월 19일
t_idx = find(t >= 2000 & t <= 7000);
Star Strider
Star Strider 2012년 10월 19일
Thank you, Walter.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by