Neglect datapoints for a plot
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!