How to put lines with pre-defined slopes on a plot
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi all. I want to put lines with pre-defined slopes (i.e. between 0.85 and 1.15) onto a matlab plots. Any help is much appreciated.Thanks
3 commentaires
Mathieu NOE
le 30 Avr 2021
hello
you simply have to compute the derivative of your data (gradient )and search the points where the slope reaches the two targeted values
it's then fairly simple to draw a portion of line knowing the x and y coordinates and the slope
Réponses (0)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!