Griddata is omitting boundary data
5 次查看(过去 30 天)
显示 更早的评论
I am trying to plot 3d mesh plot using grid data. I have imported x,y, z cordinate data from .txt file. I am unable to fiugure out why grid data is omiting data on corner. See the image attached. I plotted 3d scttered data using plot3 comand to ensure there exist data, which is denoted by circles. I have 403 nodes and its x,y,z coordinates.
my programme is as follows.
x=disp(:,1); %x-cordinates of data point
y=disp(:,2); %y-cordinates of data point
z=disp(:,3); %z-cordinates of data point
[xq,yq]=ndgrid(0:0.01:0.3, 0:0.005:0.06);%mesh grid
vq= griddata(x,y,z,xq,yq);
figure
mesh(xq,yq,vq);
hold on;
plot3(x,y,z,'o');
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!