Why am I getting gaps in my data when I attempt to interpolate my curve?
I am trying to make finner steps (x) for my data file attached. I am using matlab’s interp function. Upon doing so, I get the curve attached with a big gap in the data. Any idea what I am doing wrong?
xInterp=linspace(Dist(1),Dist(end),2500);%also tried less points (500->1000) and it was worse
yInterp=interp1(Dist,Power,xInterp,’spline’);
figure
plot(xInterp,yInterp)
set(gca, ‘YScale’, ‘log’)I am trying to make finner steps (x) for my data file attached. I am using matlab’s interp function. Upon doing so, I get the curve attached with a big gap in the data. Any idea what I am doing wrong?
xInterp=linspace(Dist(1),Dist(end),2500);%also tried less points (500->1000) and it was worse
yInterp=interp1(Dist,Power,xInterp,’spline’);
figure
plot(xInterp,yInterp)
set(gca, ‘YScale’, ‘log’) I am trying to make finner steps (x) for my data file attached. I am using matlab’s interp function. Upon doing so, I get the curve attached with a big gap in the data. Any idea what I am doing wrong?
xInterp=linspace(Dist(1),Dist(end),2500);%also tried less points (500->1000) and it was worse
yInterp=interp1(Dist,Power,xInterp,’spline’);
figure
plot(xInterp,yInterp)
set(gca, ‘YScale’, ‘log’) interpolation MATLAB Answers — New Questions