Extract Plot Values from Sine Wave
显示 更早的评论
Hello,
I'm looking for some general ideas / suggestions about my current problem. I need to write some functions that will extract interesting data points (min,max, p-p,etc) from a plotted sine wave. The wave has not been created yet. A coworker will create the equations that will generate this wave at a later date, so I don't know if he will be plotting an actual sine wave, or if he will have points that will become a wave form. So I cannot simply take values from a single equation. I hope that makes sense so far. Basically, I'm doing the post-processing work on his plot so that when he creates the equations and plots, the whole program will run, and my functions will appropriately extract the information needed. Does anyone have any suggestions on a stable way to extract interesting information as mentioned from a currently unknown plot? Or to even extract ALL values in defined timesteps?
It seems that there are so many ways to do something like this, so I'm hoping for some guidance to know which paths might be better than others. I will be creating test plots while doing this, but I cannot be sure of the end outcome, except that they will be sine waves.
4 个评论
Image Analyst
2014-10-2
编辑:Image Analyst
2014-10-2
We can't answer until we know what form "a plotted sine wave" takes. Will you have the actual equations in an m-file so that you can regenerate the data? Will you have an image/screenshot/fig-file of the plot? Will you have a paper plot/printout? Of course if you have the equations, it's trivial - just use the max() and min() functions on the output of the equations.
katerina
2014-10-2
Image Analyst
2014-10-2
Why doesn't he just call max() or min() after he plots it? How hard would that be?
katerina
2014-10-2
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!