how to extract the time interval where variables start to increase
3 次查看(过去 30 天)
显示 更早的评论
i have a function and i plot for every moment results of this function, such the image indicate, ,and then i want to detect the moment where variables start to increase and stop increasing
0 个评论
回答(1 个)
Image Analyst
2016-2-28
Try this:
indexes = find(signal < -50);
That will tell you whenever an signal value is less than -200. If you want to find only stretches where it meets the condition for some minimum number of elements, you can use bwareaopen() to throw out short stretches.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!