how to calculate slope of each grid ?

i have 80*80 matrix. I wanted to write a code to find slope of every grid.

4 comentarios

KSSV
KSSV el 30 de Mayo de 2017
What slope? Slope needs two points?
Pritha Pande
Pritha Pande el 30 de Mayo de 2017
i have 10 years of aerosol data for Indian region.After calculating climatology i am left with,80*80 matrix (consisting mean of 10 years of aerosol data). I want to calculate slope of every grid of the matrix of 80*80. Now, is it possible to calculate slope or not? Because after seeing your comment i went to talk to my professor regarding this and he said yes you can calculate.
Jan
Jan el 30 de Mayo de 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 el 1 de Jun. de 2017
Got the slope now. Anyways, thanks for the help.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 30 de Mayo de 2017
Editada: Jan el 30 de Mayo de 2017
[dx, dy] = gradient(X)

2 comentarios

Pritha Pande
Pritha Pande el 30 de Mayo de 2017
then slope would be dy/dx?
Jan
Jan el 30 de Mayo de 2017
Did you read this already:
doc gradient
?

Iniciar sesión para comentar.

Categorías

Más información sobre Weather and Atmospheric Science en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 30 de Mayo de 2017

Comentada:

el 1 de Jun. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by