How to fit two equations to one dataset
Afficher commentaires plus anciens
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 commentaires
Satyajeet Sasmal
le 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
le 19 Nov 2015
John D'Errico
le 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.
Réponses (1)
Thorsten
le 19 Nov 2015
data(data < -10) = [];
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
