Extracting extremum X,Y coordinates from plot
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a plot (of a cyclic behaviour) which has a lot of extremum points. I want to extract (and transfer to excel) the coordinates of local extremum points in this plot, instead of writing them down one by one.
I appreciate your help.
0 个评论
采纳的回答
dpb
2023-1-16
移动:dpb
2023-1-16
findpeaks in the Signal Processing TB can be very helpful for such -- remember a minimum is the maximum of a negated signal.
Per usual, if you were to expect any really specific input, attach a sample of the data...and, if you can plot the data, you can operate on the data used to make the plot instead of extracting it back out of the figure.
If you're manually selecting the points w/ ginput or the like; there's sample code to save those in a variable from the callback function; once you have that array, outputting it to a file is trivial.
Again, too little info for specifics...
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!