Gradient Magnitude using Finite Differences

I am new to MATLAB and am interested in computing the gradient magnitude using finite differences with a window size. I noticed MATLAB has a gradient function but not finite differences option. Can someone help?
Thanks,

提问:

2015-4-29

Community Treasure Hunt

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

Start Hunting!

Translated by