calculate a derivative on a graph
2 次查看(过去 30 天)
显示 更早的评论
what code would i need to answer my question?
3 个评论
回答(1 个)
Walter Roberson
2023-11-24
There are two steps:
- 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.
- Once you have the x and y coordinates, use gradient . Possibly followed with interp1
0 个评论
另请参阅
类别
在 Help Center 和 File 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!