首页 > 编程知识 正文

matlab分段线性插值函数求值,c语言好玩的程序代码

时间:2023-05-04 18:46:09 阅读:152741 作者:2009

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!

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。