Borrar filtros
Borrar filtros

calculate a derivative on a graph

2 visualizaciones (últimos 30 días)
Thomas
Thomas el 23 de Nov. de 2023
Respondida: Walter Roberson el 24 de Nov. de 2023
what code would i need to answer my question?
  3 comentarios
Thomas
Thomas el 23 de Nov. de 2023
its a graph, need to find the derivative at intervals of the graph
Sulaymon Eshkabilov
Sulaymon Eshkabilov el 24 de Nov. de 2023
Is it MATLAB figure object or an image?

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 24 de Nov. de 2023
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

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by