how to calculate slope of each grid ?

4 Ansichten (letzte 30 Tage)
Pritha Pande
Pritha Pande am 30 Mai 2017
Kommentiert: Pritha Pande am 1 Jun. 2017
i have 80*80 matrix. I wanted to write a code to find slope of every grid.
  4 Kommentare
Jan
Jan am 30 Mai 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
Pritha Pande am 1 Jun. 2017
Got the slope now. Anyways, thanks for the help.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jan
Jan am 30 Mai 2017
Bearbeitet: Jan am 30 Mai 2017
[dx, dy] = gradient(X)
  2 Kommentare
Pritha Pande
Pritha Pande am 30 Mai 2017
then slope would be dy/dx?
Jan
Jan am 30 Mai 2017
Did you read this already:
doc gradient
?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Networks finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by