how to calculate slope of each grid ?

5 visualizzazioni (ultimi 30 giorni)
Pritha Pande
Pritha Pande il 30 Mag 2017
Commentato: Pritha Pande il 1 Giu 2017
i have 80*80 matrix. I wanted to write a code to find slope of every grid.
  4 Commenti
Jan
Jan il 30 Mag 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 il 1 Giu 2017
Got the slope now. Anyways, thanks for the help.

Accedi per commentare.

Risposte (1)

Jan
Jan il 30 Mag 2017
Modificato: Jan il 30 Mag 2017
[dx, dy] = gradient(X)
  2 Commenti
Pritha Pande
Pritha Pande il 30 Mag 2017
then slope would be dy/dx?
Jan
Jan il 30 Mag 2017
Did you read this already:
doc gradient
?

Accedi per commentare.

Categorie

Scopri di più su Networks in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by