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?

回答 (1 件)

Matt J
Matt J 2023 年 3 月 20 日

0 投票

Yes, you can use the diff or gradient command.

カテゴリ

ヘルプ センター および File ExchangeSpline Postprocessing についてさらに検索

製品

リリース

R2020a

質問済み:

2023 年 3 月 20 日

回答済み:

2023 年 3 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by