MATLAB: ??? Undefined function or method ‘interpl’ for input arguments of type ‘double’.

interpolationMATLAB

my code is m=0.68; m1=[1;0.95;0.9;0.85;0.8;0.75;0.7;0.65;0.6;0.55;0.5]; Can=[0.05;0.055;0.06;0.066;0.071;0.076;0.081;0.085;0.089;0.092;0.094]; Cbn=[0.05;0.045;0.04;0.034;0.029;0.024;0.019;0.015;0.011;0.008;0.006]; Capd=[0.027;0.03;0.033;0.036;0.039;0.043;0.046;0.05;0.053;0.056;0.059]; Cbpd=[0.027;0.024;0.022;0.019;0.016;0.013;0.011;0.009;0.007;0.005;0.004]; Capl=[0.032;0.035;0.039;0.043;0.048;0.052;0.057;0.062;0.067;0.072;0.077]; Cbpl=[0.032;0.029;0.026;0.023;0.02;0.016;0.014;0.011;0.009;0.007;0.005]; can=interpl(m1,Can,m,'linear'); cbn=interpl(m1,Cbn,m,'linear'); capd=interpl(m1,Capd,m,'linear'); cbpd=interpl(m1,Cbpd,m,'linear'); capl=interpl(m1,Capl,m,'linear'); cbpl=interpl(m1,Cbpl,m,'linear');

Best Answer

The name of the one-dimensional interpolation function is interp1. The last character is the numeral 1 (one), not the letter l (a lower-case L).