Help regarding below question.

How to find the slope of a plotted curve in matlab?

2 个评论

How did you get the curve ? By a functional equation ? Only by data points ?
By a functional equation

请先登录,再进行评论。

回答(1 个)

f = @(x) [functional equation]
syms x
df = diff(f,x);
df_fun = matlabFunction(df);
x = xstart:0.01:xend; % define interval for which you want to get the slope
slope = df_fun(x);
plot(x,slope)

类别

标签

回答:

2022-4-3

Community Treasure Hunt

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

Start Hunting!

Translated by