Gradient Computation of Matrix
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuestas (1)
Sulaymon Eshkabilov
el 3 de Jun. de 2021
[Gx, Gy] = gradient(G)
And dont forget elementwise operation: ./
0 comentarios
Ver también
Categorías
Más información sobre Spline Postprocessing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!