Help regarding below question.

3 次查看(过去 30 天)
Amy Topaz
Amy Topaz 2022-4-3
回答: Torsten 2022-4-3
How to find the slope of a plotted curve in matlab?
  2 个评论
Torsten
Torsten 2022-4-3
How did you get the curve ? By a functional equation ? Only by data points ?

请先登录,再进行评论。

回答(1 个)

Torsten
Torsten 2022-4-3
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)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by