3D plot from Excel data "delaunay" function
1 view (last 30 days)
Show older comments
Hello I'm trying to plot a 3D surface using the following function to import the data from excel as vectors:
function reg1(x,y,z) test = xlsread('rectag1.xls', 'F10:H2711'); x=test(:,1); y=test(:,2); z=test(:,3); tri = delaunay(x,y); trisurf(tri,x,y,z); end
I've used it before with similar range of data and it has worked, nevertheless this time I get this warning:
Error using delaunay The input points must contain finite values; Inf and NaN are not permitted.
Please could someone help me out to better understand the issue?
0 Comments
Answers (0)
See Also
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!