This is my function, f(x)=x^2 – 4 and f(x+h)=(x+h)^2 – 4

f=@(x) x.^2- 4;

f=@(x+h) x.^2- 4 (this gives me error)

How can i write f(x+h) ?

Skip to content# MATLAB: How can i change x to (x+h)

replacing

This is my function, f(x)=x^2 – 4 and f(x+h)=(x+h)^2 – 4

f=@(x) x.^2- 4;

f=@(x+h) x.^2- 4 (this gives me error)

How can i write f(x+h) ?

## Best Answer