| 查看: 3012 | 回复: 11 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
[求助]
自己编了个matlab数据拟合公式,拟合成功但不显示参数,请问问题出在哪了? 已有2人参与
|
||
|
程序代码如下 data1=xlsread('C:\Users\dell\Desktop\数据拟合\新建 Microsoft Excel 工作表.xlsx',1,'a1:a100'); data=xlsread('C:\Users\dell\Desktop\数据拟合\新建 Microsoft Excel 工作表.xlsx',1,'B1:B100'); x=[data1]; y=[data]; p=fittype('a^x*(b-c)+c','independent','x', 'dependent', 'y') f=fit(x,y,p); plot(f,x,y); p = General model: p(a,b,c,x) = a^x*(b-c)+c 警告: Start point not provided, choosing random start point. > In Warning>Warning.throw at 30 In fit>iFit at 312 In fit at 108 没有显示出abc的结果。。。这是怎么回事?求高手指点。。。 |
» 猜你喜欢
面上函评意见出来了,像什么等级?
已经有15人回复
为什么资助数各大高校都创新高,自己申请怎么就这么难
已经有14人回复
在坚冰还盖着北海的时候,我看到了怒放的梅花。
已经有11人回复
小白求助 投论文要求的highlights应该如何写
已经有4人回复
麻烦专家们看看评委们的意见(F口面上)
已经有12人回复
怎么看青基中了没有啊
已经有6人回复
国社科又开始会评了,不知道这次命运如何
已经有11人回复
有多少人是今天查系统知道结果的?
已经有19人回复
基金未中,这种答复是模板吗?
已经有7人回复
哪位高人中了,把查询到的截图贴出来让我看看,让我长长见识
已经有7人回复

monkeyking0
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 2157
- 散金: 2291
- 红花: 5
- 帖子: 387
- 在线: 334.7小时
- 虫号: 3087664
- 注册: 2014-03-25
- 专业: 燃烧学
11楼2015-05-29 10:34:22
monkeyking0
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 2157
- 散金: 2291
- 红花: 5
- 帖子: 387
- 在线: 334.7小时
- 虫号: 3087664
- 注册: 2014-03-25
- 专业: 燃烧学
【答案】应助回帖
★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
右手握炮: 金币+50, ★★★★★最佳答案, 太感谢拉 2015-05-29 14:18:03
感谢参与,应助指数 +1
右手握炮: 金币+50, ★★★★★最佳答案, 太感谢拉 2015-05-29 14:18:03
2楼2015-05-28 20:27:38
|
多谢兄台,我把程序改成这个,没警告了,但不显示abc的值不知是怎么回事,附excel表格 data1=xlsread('C:\Users\dell\Desktop\数据拟合\新建 Microsoft Excel 工作表.xlsx',1,'a1:a100'); data=xlsread('C:\Users\dell\Desktop\数据拟合\新建 Microsoft Excel 工作表.xlsx',1,'B1:B100'); x=[data1]; y=[data]; p=fittype('a^x*(b-c)+c','independent','x', 'dependent', 'y'); opt=fitoptions(p); opt.StartPoint=[0.7 1 0.7]; f=fit(x,y,p,opt); plot(f,x,y); |

3楼2015-05-28 21:09:44
|
x=1到50 y=0.69869602 0.590282096 0.53444396 0.50040014 0.477474302 0.4609846 0.44855435 0.438848807 0.431060579 0.424672595 0.419338377 0.414817048 0.410935948 0.407568082 0.404617959 0.402012394 0.399694353 0.397618734 0.395749397 0.394057046 0.392517681 0.391111457 0.389821815 0.388634834 0.387538726 0.38652344 0.385580354 0.384702032 0.383882023 0.383114707 0.382395163 0.381719064 0.381082591 0.38048236 0.37991536 0.379378906 0.378870595 0.378388268 0.377929983 0.377493986 0.37707869 0.376682654 0.376304569 0.375943242 0.375597582 0.375266593 0.374949359 0.374645041 0.374352865 0.37407212 |

4楼2015-05-28 21:13:53










回复此楼
30