How can I extract a series of profiles for different increments of THETA from cart2pol?

2 views (last 30 days)
I have a square grid of data Z(X,Y) that I have converted to a polar coordinate system, so that Z(THETA,RHO).
I want to extract one profile through Z per angular increment of THETA and export the series of profiles this generates to a single matrix with each Z profile as a row and the columns given by increasing RHO. In other words, one profile from each spoke of a wheel whose center is located at the bottom left corner of Z.
Any help is appreciated and I can give more details on the problem if needed.
Cheers, JK

Accepted Answer

Image Analyst
Image Analyst on 17 May 2013
Try the waterfall() function. It plots as a rectangle, not spokes, but perhaps that will suffice.
  6 Comments
JK
JK on 17 May 2013
Edited: Image Analyst on 17 May 2013
Yeah sure. Here's the ac image:
I think improfile() may be what I need, so thanks for directing me to that. But essentially the idea of this is not to plot anything. I realise that the original image will show as much as a load of radial profiles from the image plotted at the same time. And I also appreciate that the profiles will be fairly similar and especially close to the 'cone' (as you can see in the image).
I've already been able to measure the surface correlation length from the image by calculating the average of the 1/exp contour. But I also want to calculate the mean/std/range of the exponent of an isotropic x-power law fitted to the surface autocorrelation function. Since (to my knowledge) there's no way to fit a complex function such as this to the surface in 2-D (although I'd be very happy to be corrected), I think I will have to fit the power law sequentially to a series of individual radial profiles (i.e. 1-D acf's) across the 2-D acf. Hence, I need to extract the radial profiles from the above image.
Hope that's cleared up the why! I have lots of surfaces that I need to perform this analysis on and some are anisotropic and/or contain periodic elements, which is why I want to analyse the form of the model acf.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!