Error when using isonormals on meshgrid after applying pol2cart
1 view (last 30 days)
Show older comments
Using the attached data and the following code:
[TH_45, R_45, Z_45] = meshgrid(theta_45,r_45, z_45);
[X_45,Y_45] = pol2cart(TH_45, R_45);
figure;
h = axes;
p1 = patch(isosurface(X_45, Y_45, Z_45,data,500));isonormals(X_45, Y_45, Z_45,data,p1)
p1.FaceColor = 'blue';
p1.EdgeColor = 'none';
view(-23,6);
axis tight
camlight
lighting gouraud
I get the following error meassage:
Error using interp3 (line 149) Input grid is not a valid MESHGRID.
Error in isonormals (line 75) n(:,1)=interp3(x, y, z, nx, verts(:,1), verts(:,2), verts(:,3));
I can't find the solution to that issue.
0 Comments
Answers (0)
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!