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

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?

Answers (1)

Categories

Products

Release

R2020a

Asked:

on 20 Mar 2023

Answered:

on 20 Mar 2023

Community Treasure Hunt

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

Start Hunting!