hello, i have problem with this short for loop, matlab reports error in last line, number 61, X, Y and Z must be vectors of the same length. Im doing extrapolation, and have 100 points, so i want to do it after each 5, or 10 for example. can someone help me to solve it… thanks
scatter3(x,y,z,'b');hold on;for k=[5,5,5] F = scatteredInterpolant(x(1:k),y(1:k),z(1:l), 'nearest'); zt = F([x(k+1),y(k+1)]); scatter3(x(k+1),y(k+1),zt, 'r');endhold on;
Best Answer