- Can you provide example data, or maybe an example plot of what your data looks like?
- You stated that your current workflow involves fitting post-peak data with "pre-storm" data, and getting the slope. Can you explain the data being used to fit this line, and how you use this to calculate the Y recovery time?
How to fit a slope line after each peak?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I have 2 variables X, Y. Somehow Y is declining whenever X peaks. I am interested in looking at how Y recovers after each peak of X. What I did, is that I found all the peaks in X by findpeaks. I then determined the value of Y one day before the peak as my "Pre-peak" value. I need to determine how long does it take Y to recover to pre-peak value. How many time steps does it take for post-peak value to go back to pre-peak value. The common way this thing was done is by fitting a line to post-peak data that intersects with pre-storm data and get the slope of this line. Any idea how to do this please or any better way? I hope I did not confuse you.
1 comentario
Carl
el 24 de Jul. de 2017
Hi Karoline, can you provide more details on your data, and your current workflow?
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!