Great work !
This code is very helpful for a work about nanoparticles diffusion inside a human cell... Probably not what you thought when creating this code
Anthony

Kelly,
You could try using the return matrices Xi,Yi,Zi to make an interpolating function. Then find z values corresponding to any x,y points you want.
An example, using scatteredInterpolant,
[t,r] = meshgrid(linspace(0,2*pi,361), ...
linspace(-4,4,101));
[x,y] = pol2cart(t,r);
P = peaks(x,y);
angR = [20 350]*pi/180;
radR = [.8 4];
figure;
[xi,yi,zi] = ...
polarplot3d(P, ...
'AngularRange',angR, ...
'RadialRange',radR);
zFun = ...
scatteredInterpolant(xi(:),yi(:),zi(:), ...
'natural');
figure;
surf(x,y,zFun(x,y),'linestyle','none');

Comment only

28 Oct 2014

3D Polar Plot
Plots 3d polar data with polar axis and polar grid

Excellent script; thank you very much for it.
I would like to interpolate across the center of the plot(constituted by the first row or the input vector), as well as between the first and last column of the input vector.
Could you advise me on how to proceed with this?

5

22 May 2014

3D Polar Plot
Plots 3d polar data with polar axis and polar grid

Seb,
I believe this is due to an opengl bug. For example,
figure('renderer','opengl');
polarplot3d(peaks(101),'cartorigin',[10^6 10^8]);
is mangled. But,
figure('renderer','zbuffer');
polarplot3d(peaks(101),'cartorigin',[10^6 10^8]);
looks good. Painters works too but the gridlines aren't drawn very well.

Comment only

21 May 2014

3D Polar Plot
Plots 3d polar data with polar axis and polar grid

Reall good script that does pretty much everything I needed. However, when trying to shift the CartOrigin to projected UTM coordinates (i.e. 10^5 on x and 10^6 on y), the mesh is totally disturbed. Any idea where that occurs?
Cheers!
S

5

09 Jan 2014

3D Polar Plot
Plots 3d polar data with polar axis and polar grid

Great work !
This code is very helpful for a work about nanoparticles diffusion inside a human cell... Probably not what you thought when creating this code
Anthony

Comment only