numerical derivate and central difference
조회 수: 29 (최근 30일)
이전 댓글 표시
can anyone help me with this function, please?
find numerical derivative of f(x) = tan−1(?) at x = 2 using central difference scheme where is x is in radians. Use different values of step size h in central difference scheme and compare with true value of the derivative by plotting error for the different h. f(x) means function of x.
댓글 수: 2
답변 (1개)
Jim Riggs
2020년 5월 10일
편집: Jim Riggs
2020년 5월 10일
Here are some Numerical difference formulas using the central difference method (substitute dt = h).
You can find more formulas with even higher accuracy on wikipedia. (see "numerical differentiation" and also "finite difference coefficient"
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291933/image.jpeg)
댓글 수: 4
Muhammad Hammad Malik
2021년 2월 14일
편집: Muhammad Hammad Malik
2021년 2월 14일
@Jim Riggs @payam abubakri also want to calculate gradient(central difference) with window size=10smples with 50% overlap to previous window using attached equation.could you pls help. Thanks![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/519297/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/519297/image.jpeg)
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!