How to get gradient data from non-linear 2D plot

2 vues (au cours des 30 derniers jours)
ashley scarlett
ashley scarlett le 20 Mar 2023
Réponse apportée : Matt J le 20 Mar 2023
I have a non-linear 2D plot and want to find the gradient between two values of y (i.e. not the start and end point of the plot).
Can you calculate this for a number of datasets and export results as a .txt file?

Réponses (1)

Matt J
Matt J le 20 Mar 2023
Yes, you can use the diff or gradient command.

Catégories

En savoir plus sur Spline Postprocessing dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by