필터 지우기
필터 지우기

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 CenterFile Exchange에서 Specifying 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