How to fit two equations to one dataset
Ältere Kommentare anzeigen
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 Kommentare
Satyajeet Sasmal
am 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
am 19 Nov. 2015
John D'Errico
am 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.
Antworten (1)
Thorsten
am 19 Nov. 2015
data(data < -10) = [];
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
