How to find the slope of phase data (between two points) which is uneven
Ältere Kommentare anzeigen

I have a phase vs frequency plot. I need to find the slope between point 'a' and point 'b' in an automated way instead of looking at the points 'a' and 'b' and calculating the slope. Can anyone help me with this?
Akzeptierte Antwort
Weitere Antworten (2)
I would suggest using either findpeaks to determine points a and b and then calculate the average slope or alternatively using findchangepts. If you want code, then I suggest you upload some data.
3 Kommentare
Sriram Guddati
am 12 Okt. 2018
jonas
am 12 Okt. 2018
Yes of course. The index is the second output of findpeaks. Note that you need to run the function two times, one for peaks and one for valleys. For the latter, you just turn the plot upside down, i.e.
findpeaks(-y)
Sriram Guddati
am 12 Okt. 2018
Greg Dionne
am 26 Okt. 2018
0 Stimmen
Kategorien
Mehr zu Spectral Measurements 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!