求matlab拟合函数关系式和三维图T\x05 D\x05 K13.39397\x0510779.24086\x0526376.5756513.18762\x0510624.98982\x0528662.5539912.12091\x059529.590057\x0528863.0021312.29292\x059550.568789\x0529101.7048912.77686\x059570.945701\x0530343.1517212.96
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/06 04:21:11
求matlab拟合函数关系式和三维图T\x05 D\x05 K13.39397\x0510779.24086\x0526376.5756513.18762\x0510624.98982\x0528662.5539912.12091\x059529.590057\x0528863.0021312.29292\x059550.568789\x0529101.7048912.77686\x059570.945701\x0530343.1517212.96
求matlab拟合函数关系式和三维图
T\x05 D\x05 K
13.39397\x0510779.24086\x0526376.57565
13.18762\x0510624.98982\x0528662.55399
12.12091\x059529.590057\x0528863.00213
12.29292\x059550.568789\x0529101.70489
12.77686\x059570.945701\x0530343.15172
12.96479\x059503.750018\x0530721.88902
24.56432\x0516004.43478\x0534224.24505
23.86597\x0516041.78065\x0534676.95219
22.79274\x0516801.20476\x0535004.60145
17.15393\x0510327.30357\x0538834.72723
17.19834\x0510363.02472\x0539477.20382
23.30241\x0517202.82461\x0539725.03034
19.90063\x0510691.38352\x0539808.59269
如图 知道K T D的大量数据 拟合出这样的函数关系式 c 和f不知道待拟合
求程序!还有三维图的做法!毕业设计需要!
求matlab拟合函数关系式和三维图T\x05 D\x05 K13.39397\x0510779.24086\x0526376.5756513.18762\x0510624.98982\x0528662.5539912.12091\x059529.590057\x0528863.0021312.29292\x059550.568789\x0529101.7048912.77686\x059570.945701\x0530343.1517212.96
data=[13.3939710779.2408626376.57565
13.1876210624.9898228662.55399
12.120919529.59005728863.00213
12.292929550.56878929101.70489
12.776869570.94570130343.15172
12.964799503.75001830721.88902
24.5643216004.4347834224.24505
23.8659716041.7806534676.95219
22.7927416801.2047635004.60145
17.1539310327.3035738834.72723
17.1983410363.0247239477.20382
23.3024117202.8246139725.03034
19.9006310691.3835239808.59269];
T=data(:,1);
D=data(:,2);
x=[T D];
K=data(:,3);
fun=@(a,x)a(1)*x(:,1).^a(2).*x(:,2).^a(3);
a0=[1 0.5 2];
beta = nlinfit(x,K,fun,a0)