Is there a function to sum matrix elements along an arbitrary direction?

6 visualizaciones (últimos 30 días)
Hi
I would like to know if there is a Matlab build-in function that calculates the sum of elements along a direction that is not vertical or horizontal.
Something like output_matrix=sumdir(input_matrix, phi, length)
I couldn't find anything on the matlab help so I would appreciate your help.
Thanks a lot
Jan

Respuesta aceptada

Matt J
Matt J el 12 de Mzo. de 2013
Editada: Matt J el 12 de Mzo. de 2013
The RADON function, if you have the Image Processing Toolbox.
  3 comentarios
Jan
Jan el 12 de Mzo. de 2013
And decide of the length of the summation
Jan
Jan el 12 de Mzo. de 2013
Sorry for my two previous messages I see how I can make it work with the radon function.
Thanks a lot

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by