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

조회 수: 4 (최근 30일)
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

채택된 답변

Matt J
Matt J 2013년 3월 12일
편집: Matt J 2013년 3월 12일
The RADON function, if you have the Image Processing Toolbox.
  댓글 수: 3
Jan
Jan 2013년 3월 12일
And decide of the length of the summation
Jan
Jan 2013년 3월 12일
Sorry for my two previous messages I see how I can make it work with the radon function.
Thanks a lot

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by