フィルターのクリア

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 Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by