How to outline a curve
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
dj
el 12 de Oct. de 2014
Comentada: dj
el 13 de Oct. de 2014
Hello.
If I'm trying to plot variables x and y, and the y values vary so much that the curve looks like the following: http://i.stack.imgur.com/4uiNT.png
The only difference is that mine is a single curve of data with a lot of noise. Is there a way I could just plot the upper and the lower curves so I could just look at the boundaries? Do I have to use the findpeak command?
Thank you for your time!
2 comentarios
Respuesta aceptada
Mohammad Abouali
el 12 de Oct. de 2014
Editada: Mohammad Abouali
el 12 de Oct. de 2014
3 comentarios
Mohammad Abouali
el 12 de Oct. de 2014
Editada: Mohammad Abouali
el 12 de Oct. de 2014
There is no two sets of data. In this graph there is only 1 set, i.e. the blue line. Once you run the HANTS algorithm you have three options, Lo (which gives you the red line) Hi (which gives you the black line), or none which gives you the green line.
You might need to play a bit with the sampling and frequency numbers to get a proper fit.
This function is generally for smoothing the data set and also removing outliers. Of course it gives the main frequency in your data set and you can use it for harmonic analysis.
Más respuestas (1)
John D'Errico
el 12 de Oct. de 2014
I suppose you could use my SLM tools . It has an option to fit an envelope curve, so you could first fit the infimum curve, then the supremum curve to get lower and upper bounds from a pair of calls.
You might want other options in the total prescription, but a start might be...
LBcurve = slmengine(x,y,'envelope','inf');
UBcurve = slmengine(x,y,'envelope','sup');
1 comentario
Ver también
Categorías
Más información sobre Interpolation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!