フィルターのクリア

calculate a derivative on a graph

2 ビュー (過去 30 日間)
Thomas
Thomas 2023 年 11 月 23 日
回答済み: Walter Roberson 2023 年 11 月 24 日
what code would i need to answer my question?
  3 件のコメント
Thomas
Thomas 2023 年 11 月 23 日
its a graph, need to find the derivative at intervals of the graph
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 11 月 24 日
Is it MATLAB figure object or an image?

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 11 月 24 日
There are two steps:
  1. First you have to extract x and y data from the graph. If the graph is in the form of an image, then extracting the data by having code analyze the image can be a bit tricky, but there are a number of File Exchange contributions to try to make it easier. If the graph is in the form of MATLAB graphic objects, then you can extract data from those by examining their XData and YData properties. And if you have the x and y data available in the workspace, use that directly.
  2. Once you have the x and y coordinates, use gradient . Possibly followed with interp1

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by