Help regarding below question.

조회 수: 1 (최근 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 ?
Amy Topaz
Amy Topaz 2022년 4월 3일
By a functional equation

댓글을 달려면 로그인하십시오.

답변 (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