xmustbeamonotonicallyincreasingarray;
ymustbeanArraywithLength(y )=length(X ) x;
XI must be an array .
Example:
x=[1:1:1000];
y=log(sqrt )-1.001 )-1.001 );
xv=[5:001:100];
yinterp=Lininterp1f(x,y,xv,[] );
warning : notmuchinthewayoferrorchecking,since this slows things down,sopayattentiontotheargumentpassedtothefunction!
安装(windows用户) :
-------------请参阅
simplycopythelininterp1f.dllfileinadirectoryrecognizablebymatlab.you won ' tneedlininterp1f.ctoperformcomputations, butitisusefulifyouwanttoreadtheuserinstructionsortocustomizeyourcode.ifyoumoustrunthefollowingcommode.ifyoumodifylinterp1f.cthentheflouloustteranttttttteralored
mex lininterp1f.c
in order to obtain the new dll file。
安装(otherosusers ) :
-------------请参阅
youhavetocompilelininterp1f.cwithyourfavouriteccompiler (write ' MEX-setup ' atthematlabprompt ),then write
mex lininterp1f.c
nordertoobtainthecorrespondingmex-file (seethetablebelow ) )。
-------------请参阅
sol2,SunOS 5.x --- .mexsol
hpux --- .mexhpux
hp700 --- .mexhp7
ibm_rs --- .mexrs6
sgi --- .mexsg
阿尔法----mexaxp
glnx86 --- .mexglx
PLEASE RATE MY SUBMISSION!