Matlab中,已知一个方程中含有2个未知量,已知其2个未知量多个数据,怎么带入方程中分别计算?如图
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
1个回答
展开全部
x = [.98 .96 .93 .90 .85 .80 .70 .60 .50 .40 .30 .20 .10 .00];
y = [.588235294 .647058824 .705882353 .745098039 .788235294...
.815686275 .862745098 .901960784 .929411765 .950980392...
.970588235 .984313725 .994117647 1];
syms a;
A = zeros(1,14);
for i = 1:14
exp = (1-.02288239239*y(i)-(1-.02288239239)*y(i)^a).^0.5-x(i);
if exp == 0
A(i) = nan;
else
r = solve(exp);
A(i) = vpa(r,4);
end;
end
A
A =
6.8230 6.2760 6.0470 5.8870 5.5710 5.1640 4.6700 4.4220 4.0060 3.5330 3.2120 2.6200 1.7150 NaN
y = [.588235294 .647058824 .705882353 .745098039 .788235294...
.815686275 .862745098 .901960784 .929411765 .950980392...
.970588235 .984313725 .994117647 1];
syms a;
A = zeros(1,14);
for i = 1:14
exp = (1-.02288239239*y(i)-(1-.02288239239)*y(i)^a).^0.5-x(i);
if exp == 0
A(i) = nan;
else
r = solve(exp);
A(i) = vpa(r,4);
end;
end
A
A =
6.8230 6.2760 6.0470 5.8870 5.5710 5.1640 4.6700 4.4220 4.0060 3.5330 3.2120 2.6200 1.7150 NaN
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |