- #1
rolotomassi
- 53
- 0
Here is a link the code which I am trying to modify. It is the radial average of a matrix function.
http://uk.mathworks.com/matlabcentral/fileexchange/46468-radialavg-zip/content/radialavg.m
I want to restrict the function to only look within certain angles, e.g. 15 degrees either side of the y axis.
The matrix is centred about the axis I think in this function.
I have tried to use conditions which I add to the first line in the for loop such as :
Y/X > some value, which would restrict to a conic section.
But I get the error "Matrix is singular to working precision" and i don't know why. Its probably evident, but I am a beginner rarely use Matlab.
Thanks
http://uk.mathworks.com/matlabcentral/fileexchange/46468-radialavg-zip/content/radialavg.m
I want to restrict the function to only look within certain angles, e.g. 15 degrees either side of the y axis.
The matrix is centred about the axis I think in this function.
I have tried to use conditions which I add to the first line in the for loop such as :
Y/X > some value, which would restrict to a conic section.
But I get the error "Matrix is singular to working precision" and i don't know why. Its probably evident, but I am a beginner rarely use Matlab.
Thanks