麻烦matlab高手用lsqcurvefit函数帮我拟合一组数据.y=[0.925,0.881,0.8604,0.8604,0.8409,0.8409,0.8409,0.8222,0.8222,0.8222,0.8044,0.8044,0.8044,0.8044,0.7872,0.7872,0.7872,0.7872,0.7708,0.7708,0.7708,0.7708,0.7708,0.7551,0.7255,0.7115,0.67

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 01:51:24
麻烦matlab高手用lsqcurvefit函数帮我拟合一组数据.y=[0.925,0.881,0.8604,0.8604,0.8409,0.8409,0.8409,0.8222,0.8222,0.8222,0.8044,0.8044,0.8044,0.8044,0.7872,0.7872,0.7872,0.7872,0.7708,0.7708,0.7708,0.7708,0.7708,0.7551,0.7255,0.7115,0.67
xUNG~ȆawwܤoP?6vklۭ I QRPh%UbT\: li}כ9o|{ٙʭvg`םz/E6WGa0Z{nN܌6,4f!3A14ˌe[RcA*ØLi! fE>?1H1_ l)Ä S X [ n%\aۃƶP336&j;VxXp b5H((Y<&C i2ɐvb2ɐ"C i2 8@~ B@P 1',' tsFVV/V7:LVz_vϞ:Rdt'Sh*ۨ ~n枤 z?rfGoGp>}n' vtw_>|+S[ZQBn5ܘ1+f D* ݕʇIa­'Gf30j>"?vJƝDwϕkI;{#,8Akn.[z%V(nje:ѪK( ߩ9p\#xEF%HdL$8I'R=H4NOg^1,N{E/N #{n>m\k4DϥDϑUE|#~iGgz03 !_j\su͏~W 4O_ 8 R,R}> &21ϗ\t sui?ۻֆf OYFI^M A. jM-X\NdZCh3YSpeQ )@KfpF 26>!3LM-CoxEZ͌>~*c7^f,_U>6M*r\5\ `~/N2?N>OǷmja|(O(6ϣ̴]8a΂$+lY'.va cm|Vd?(T,<ű =7#C,Au?0TՊS]4

麻烦matlab高手用lsqcurvefit函数帮我拟合一组数据.y=[0.925,0.881,0.8604,0.8604,0.8409,0.8409,0.8409,0.8222,0.8222,0.8222,0.8044,0.8044,0.8044,0.8044,0.7872,0.7872,0.7872,0.7872,0.7708,0.7708,0.7708,0.7708,0.7708,0.7551,0.7255,0.7115,0.67
麻烦matlab高手用lsqcurvefit函数帮我拟合一组数据.
y=[0.925,0.881,0.8604,0.8604,0.8409,0.8409,0.8409,0.8222,0.8222,0.8222,0.8044,
0.8044,0.8044,0.8044,0.7872,0.7872,0.7872,0.7872,0.7708,0.7708,0.7708,0.7708,
0.7708,0.7551,0.7255,0.7115,0.6727,0.6599,0.6491,0.6379,0.6271,0.6271,0.6167,
0.6167,0.6066,0.6066,0.6066,0.5968,0.5968,0.5968,0.5873,0.5873,0.5873,0.5873]
x=[0.0833,0.1667,0.25,0.3333,0.4167,0.5,0.5833,0.6667,0.75,0.8333,0.9167,1,1.0833
,1.1667,1.25,1.3333,1.4167,1.5,1.5833,1.6667,1.75,1.8333,1.9167,2,6,9,22,34,46,58,70,82,94,106,118,130,142,154,166,178,190,202,214,226].想用matlab里的lsqcurvefit拟合出下面这个函数,y=1/a+x/b+(1/c)*[1-exp(-c*x/d)].a,b,c,d要求的大于0的.就这些条件了.麻烦哪位会的同学,帮我解决下,-哪里看不清的可以说下.

麻烦matlab高手用lsqcurvefit函数帮我拟合一组数据.y=[0.925,0.881,0.8604,0.8604,0.8409,0.8409,0.8409,0.8222,0.8222,0.8222,0.8044,0.8044,0.8044,0.8044,0.7872,0.7872,0.7872,0.7872,0.7708,0.7708,0.7708,0.7708,0.7708,0.7551,0.7255,0.7115,0.67

我做了一下发现误差比较大,是不是我给的初值有问题,还是给的数据有问题,你可以参考下

function f=curvefun1(x,xdata)

%  y=1/a+x/b+(1/c)*[1-exp(-c*x/d)]

f=1/x(1)+xdata/x(2)+(1/x(3))*(1-exp(-x(3)*xdata/x(4)));

运行:

clear;clc;

xdata=[0.0833,0.1667,0.25,0.3333,0.4167,0.5,0.5833,0.6667,0.75,...

    0.8333,0.9167,1,1.0833,1.1667,1.25,1.3333,1.4167,1.5,1.5833,...

    1.6667,1.75,1.8333,1.9167,2,6,9,22,34,46, 58,70,82,94,106,118,...

    130,142,154,166,178,190,202,214,226];

ydata=[0.925,0.881,0.8604,0.8604,0.8409,0.8409,0.8409,0.8222,0.8222,0.8222,0.8044,...

0.8044,0.8044,0.8044,0.7872,0.7872,0.7872,0.7872,0.7708,0.7708,0.7708,0.7708,...

0.7708,0.7551,0.7255,0.7115,0.6727,0.6599,0.6491,0.6379,0.6271,0.6271,0.6167,...

0.6167,0.6066,0.6066,0.6066,0.5968,0.5968,0.5968,0.5873,0.5873,0.5873,0.5873];

x0=[5,3,5,2];   %初值

x=lsqcurvefit('curvefun1',x0,xdata,ydata)

f=curvefun1(x,xdata);

plot(xdata,ydata,'.')

hold on

plot(xdata,f,'.')

运行结果:

x =

  1.0e+002 *

  Columns 1 through 3

   0.036322600853330   2.664204064307804   0.038239112150553

  Column 4

   0.000104652408479

高手MATLAB 求微分方程的解 y''+4*y'+4*y=e^-2x麻烦用MATLAB语言写嘛,初学者看不懂啊, 麻烦懂MATLAB的高手们帮帮忙用MATLAB帮我做绘制一个长方形,将长方形3等分,每份分别着不同的颜色. MATLAB基础问题麻烦高手帮个忙,请问解有约束非线性规划问题,用MATLAB中的哪个函数?再麻烦各位把函数的调用格式也写清楚吧, matlab小白贵跪求高手 ,求高手用matlab计算如下函数值 感激不尽 用matlab 如何将图像平移,向上或向下我已经画出了两条曲线的图形,但它们是重叠的,如何可以将其中一条向上平移一点呢?麻烦matlab高手指教以下! 麻烦高手用临江仙,填词,谢谢! 求matlab高手,这个公式用simulink怎么表示 求matlab高手,求用矩阵接方程 求高手用matlab求矩阵的最大特征根. matlab产生随机数请高手指点怎么用Matlab生成15 敬请高手指教:用MATLAB求三元函数的最小值了,要程序过程,最好有解释.不好意思,有点不太对,要求x,y,z,都是正数,非常感谢您的回答,还请再麻烦一下. 麻烦matlab高手用lsqcurvefit函数帮我拟合一组数据.y=[0.925,0.881,0.8604,0.8604,0.8409,0.8409,0.8409,0.8222,0.8222,0.8222,0.8044,0.8044,0.8044,0.8044,0.7872,0.7872,0.7872,0.7872,0.7708,0.7708,0.7708,0.7708,0.7708,0.7551,0.7255,0.7115,0.67 请教matlab高手,线性拟合 高手麻烦进来看看 麻烦英语高手,改错. 麻烦matlab高手帮帮我,信号已知,求频谱y=(1+sin(90*2*pi*t)+sin(150*2*pi*t)).*cos(108.1*10^6*2*pi*t)的频谱应该如图所示那样,但是用matlab怎么做出像那样的图? 怎样将matlab图像里面的x,y坐标轴的数据输出我用matlab画了一个图,忘了保存数据,我想把图像的x,y轴的数据全部提取出来,怎么弄,麻烦高手帮下忙,你的意思是让我把程序再运行一遍吗?可我画了 请教高手::一个 用matlab计算组合数 的问题matlab如何用公式或函数求图中简单问题!