필터 지우기
필터 지우기

how to calculate slope of each grid ?

조회 수: 2 (최근 30일)
Pritha Pande
Pritha Pande 2017년 5월 30일
댓글: Pritha Pande 2017년 6월 1일
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)
  댓글 수: 2
Pritha Pande
Pritha Pande 2017년 5월 30일
then slope would be dy/dx?
Jan
Jan 2017년 5월 30일
Did you read this already:
doc gradient
?

댓글을 달려면 로그인하십시오.

카테고리

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