I need to extend my best fit curve so that I can get a current prediction when y position = 70 mm, is there a possible way to do this?
clcclear allload TOD_regular_lda.matx = 1;for i = 1:1:5 current(x) = mean(lda(x).um); z(x) = lda(x).z; C = current; x = x + 1;endC = C(:);Z = z(:);% a = fit(C,Z,'poly2');
b = fit(C,Z,'smoothingspline');plot(C,Z)axis([-0.05 0 -400 100 ])hold on% plot(a,'r--')
plot(b,'g--')xlabel('Current (m/s)')ylabel('y position (mm)')
Best Answer