Borrar filtros
Borrar filtros

Help regarding below question.

1 visualización (últimos 30 días)
Amy Topaz
Amy Topaz el 3 de Abr. de 2022
Respondida: Torsten el 3 de Abr. de 2022
How to find the slope of a plotted curve in matlab?
  2 comentarios
Torsten
Torsten el 3 de Abr. de 2022
How did you get the curve ? By a functional equation ? Only by data points ?
Amy Topaz
Amy Topaz el 3 de Abr. de 2022
By a functional equation

Iniciar sesión para comentar.

Respuestas (1)

Torsten
Torsten el 3 de Abr. de 2022
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)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by