how to calculate slope of each grid ?

2 次查看(过去 30 天)
i have 80*80 matrix. I wanted to write a code to find slope of every grid.
  4 个评论
Jan
Jan 2017-5-30
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
Pritha Pande 2017-6-1
Got the slope now. Anyways, thanks for the help.

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2017-5-30
编辑:Jan 2017-5-30
[dx, dy] = gradient(X)

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by