How to fit two equations to one dataset
Show older comments
I have one dataset and I plotted it in a graph, see the attached image. the plotted data has two distinct trends, I want to delete the lower one only keep the larger(middle) one. How can I do that?

Thanks in advance!
3 Comments
Satyajeet Sasmal
on 19 Nov 2015
Hi Yolanda,
You could just plot the Upper curve and not plot the lower curve when you plot your dataset. else, based on your requirement, you can sent conditions in your code to select only the points which are above a particular threshold(for example). Hope this answers your question.
Yolanda Gu
on 19 Nov 2015
John D'Errico
on 19 Nov 2015
But that depends on what you know about these curves! You know what separates them. I could come up with a scheme that separates these particular curves. But you might have a huge variety of curves that are not so easily separated. So we would need to know what you know about the curves to really help you.
Answers (1)
Thorsten
on 19 Nov 2015
data(data < -10) = [];
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!