How to measure phase speed in Hovmoller
5 次查看(过去 30 天)
显示 更早的评论
I have this Hovmoller plot of OLR anomalies with longitude x time, only showing the negative anomalies:
I want to know if theres a way to calculate the phase speed of this anomaly. That is, following the OLR minima over the time and then do a linear least square fit and obtain the quantity. Also, show the points and the fit in the same plot :)
Thank you, Ive been stucked with this for weeks
4 个评论
Sam Chak
2023-10-10
Thank you, @Luis Jesús Olvera Lazcano. I'm looking forward to seeing your code in your answer. By the way, it is meaningful to help others, and it is absolutely fine to 'click-accept' your self-discovered solution.
采纳的回答
Shubham
2023-10-9
I understand that you want to calculate the phase speed of the anomalies.
You can try finding the minima points from the data. You can refer to the “islocalmin” function. The function returns a logical array representing the indices for the local minimum.
After extracting the minima points you can fit a linear curve between them. You can use the “polyfit” function to get a linear fit.
You can use the coefficients returned by the “polyfit” function and use them to show the points and the fit in the same plot.
For the phase speed you can try using the coefficient of the linear fit itself.
Hope this helps!!
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AI for Signals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!