File Exchange

image thumbnail

radialavg.zip

version 1.2.0.0 (126 KB) by David Fischer
Radially averaqe 2D square matrix z into m bins and demonstration routine

17 Downloads

Updated 22 Jun 2016

View Version History

View License

[Zr, R] = radialavg(z,m,xo,yo) computes the average along the radius of a unit circle inscribed in the square matrix z. The average is computed in M bins. The radial average is not computed beyond the unit circle, in the corners of the matrix z. The radial average is returned in Zr and the mid-points of the M bins are returned in vector R. Not a Number (NaN) values are excluded from the calculation. If offset values xo,yo are used, the origin (0,0) of the unit circle about which the radialavg is computed is offset by xo and yo relative to the origin of the unit square of the input z matrix.

Cite As

David Fischer (2021). radialavg.zip (https://www.mathworks.com/matlabcentral/fileexchange/46468-radialavg-zip), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

David Fischer

And thanks for the positive feedback! Glad it’s helpful!

HIsay Lama

Can we use this function on the images wherein the circle extend beyond unity?

Borja Abascal Imizcoz

This is exactly what I was looking for! Very useful! Thank you very much

Antonio Ciarlo

Very useful, thanks David.

Leander Boer

The function works well. Its a bit slow though...

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!