forward, backward, and centered difference method

I am new to MatLab. How can I solve below:
x 1 2 3 4 5 6
f(x) 2 3 1 5 4 1
Estimate f 0 (4) using the forward, backward, and centered difference method with h = 1.

5 个评论

What have you done so far? What specific problems are you having with your code?
I am new to matlab, I am confused if i declare x and f(x) declare as an array. then to find forward diff method the equation also contains x as input.
need to find f'(4), x=4, h=1 . I have already done through manually. But how to program it ?
Please show us what you did manually. Not just the result ... show us the computations you did.

回答(0 个)

此问题已关闭。

关闭:

2022-1-15

Community Treasure Hunt

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

Start Hunting!

Translated by