radialavg.zip
Version 1.3.0.0 (3,85 KB) von
David Fischer
Radially averaqe 2D square matrix z into m bins and demonstration routine
[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 computed 1/2 bin beyond the unit circle, but all values beyond that (i.e. corners of the matrix z) are excluded from the calculation. The radial average is returned in Zr and the mid-points of the M bins are returned in vector R. RADIALAVG will fail if Not a Number (NaN) values are in the data z; they are not 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.
Zitieren als
David Fischer (2024). radialavg.zip (https://www.mathworks.com/matlabcentral/fileexchange/46468-radialavg-zip), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2006b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: STEMDIFF - powder electron diffraction in SEM
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.3.0.0 | Updated to use accumarray for faster calculation, plus small improvements. No longer NaN safe due to accumarray. Is "plug and play" replacement for original version. But results slightly different from prior version, so testing recommended. |
||
1.2.0.0 | Add origin offset |
||
1.1.0.0 | Excludes Not a Number (NaN) values from calculation |
||
1.0.0.0 |