| 查看: 2658 | 回复: 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的结果。。。这是怎么回事?求高手指点。。。 |
» 猜你喜欢
博士读完未来一定会好吗
已经有24人回复
导师想让我从独立一作变成了共一第一
已经有9人回复
到新单位后,换了新的研究方向,没有团队,持续积累2区以上论文,能申请到面上吗
已经有11人回复
读博
已经有4人回复
JMPT 期刊投稿流程
已经有4人回复
心脉受损
已经有5人回复
Springer期刊投稿求助
已经有4人回复
小论文投稿
已经有3人回复
申请2026年博士
已经有6人回复

monkeyking0
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 2155.5
- 散金: 2291
- 红花: 5
- 帖子: 387
- 在线: 334.7小时
- 虫号: 3087664
- 注册: 2014-03-25
- 专业: 燃烧学
11楼2015-05-29 10:34:22
monkeyking0
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 2155.5
- 散金: 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













回复此楼