Given a Matrix for example:
I need two Compuation Matrix such that
Gx =
Gy =
I am trying using gradient but not getting the exact results.
I also need to calculate the Magnitude of Gx and Gy such that my final matrix results as:
Resultant Matrix :
Also need to caluclate the Angle of Gx and Gy (arctan(Gy/Gx)) degree.
All element values should be rounded off in all the matrix.
I need a general code which do not depend(size of input matrix) on matrix rows and coloumns of the given input matrix.
Please help with MATLAB Code

댓글 수: 1

David Hill
David Hill 2021년 6월 3일
What is the multivariate equation used to generation your given matrix? You can't generate the gradients without knowing the equation or x/y streams.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

태그

질문:

2021년 6월 3일

댓글:

2021년 6월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by