how to calculate slope of each grid ?
Show older comments
i have 80*80 matrix. I wanted to write a code to find slope of every grid.
4 Comments
KSSV
on 30 May 2017
What slope? Slope needs two points?
Pritha Pande
on 30 May 2017
Jan
on 30 May 2017
Then your professor might be so kind to define, which slope you should calculate. The slope in x and in y direction? The direction of the steepest descent? The vector orthogonal to the plane in each point? Imagine you have a balloon. What is the "slope" in each point?
Pritha Pande
on 1 Jun 2017
Answers (1)
[dx, dy] = gradient(X)
Categories
Find more on Weather and Atmospheric Science in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!