matlab 解方程问题,solve解不出来
symsCOHaddCblgN1N2N3N4N5N6N7KbCOH0COHsolve('(COHadd-COH)/Cblg=N1*(1/(1+Kb*COH0)-1/(1+...
syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COH
solve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N5*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N6*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N7*(1/(1+Kb*COH0) - 1/(1+Kb*COH))','COH')
总报错,哪位高手帮忙解决一下,谢谢 展开
solve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N5*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N6*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N7*(1/(1+Kb*COH0) - 1/(1+Kb*COH))','COH')
总报错,哪位高手帮忙解决一下,谢谢 展开
2个回答
展开全部
确实没有错,我的MATLAB是2012B
syms COHadd Cblg N1 N2 N3 N4 N5 N6 N7 Kb COH0 COH real
solve('(COHadd - COH)/Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) + N4*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N5*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N6*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) + N7*(1/(1+Kb*COH0) - 1/(1+Kb*COH))','COH')
simple(ans)
有两个解
追问
不好意思啊,只能采纳一个答案,好像是我的matlab版本有点低
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
Sievers分析仪
2024-10-13 广告
2024-10-13 广告
是的。传统上,对于符合要求的内毒素检测,最终用户必须从标准内毒素库存瓶中构建至少一式两份三点标准曲线;必须有重复的阴性控制;每个样品和PPC必须一式两份。有了Sievers Eclipse内毒素检测仪,这些步骤可以通过使用预嵌入的内毒素标准...
点击进入详情页
本回答由Sievers分析仪提供
展开全部
没有报错啊,结果是:
ans =
-((COH0^2*COHadd^2*Kb^4 + 2*COH0^2*COHadd*Kb^3 + 4*COH0^2*Cblg*Kb^3*N1 + 4*COH0^2*Cblg*Kb^3*N2 + 4*COH0^2*Cblg*Kb^3*N3 + 4*COH0^2*Cblg*Kb^3*N4 + 4*COH0^2*Cblg*Kb^3*N5 + 4*COH0^2*Cblg*Kb^3*N6 + 4*COH0^2*Cblg*Kb^3*N7 + COH0^2*Kb^2 + 2*COH0*COHadd^2*Kb^3 - 2*COH0*COHadd*Cblg*Kb^3*N1 - 2*COH0*COHadd*Cblg*Kb^3*N2 - 2*COH0*COHadd*Cblg*Kb^3*N3 - 2*COH0*COHadd*Cblg*Kb^3*N4 - 2*COH0*COHadd*Cblg*Kb^3*N5 - 2*COH0*COHadd*Cblg*Kb^3*N6 - 2*COH0*COHadd*Cblg*Kb^3*N7 + 4*COH0*COHadd*Kb^2 + 6*COH0*Cblg*Kb^2*N1 + 6*COH0*Cblg*Kb^2*N2 + 6*COH0*Cblg*Kb^2*N3 + 6*COH0*Cblg*Kb^2*N4 + 6*COH0*Cblg*Kb^2*N5 + 6*COH0*Cblg*Kb^2*N6 + 6*COH0*Cblg*Kb^2*N7 + 2*COH0*Kb + COHadd^2*Kb^2 - 2*COHadd*Cblg*Kb^2*N1 - 2*COHadd*Cblg*Kb^2*N2 - 2*COHadd*Cblg*Kb^2*N3 - 2*COHadd*Cblg*Kb^2*N4 - 2*COHad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Cblg = N1*(1/(1 + Kb*COH0) - 1/(1 + Kb*COH)) +
N2*(1/(1+Kb*COH0) - 1/(1 + Kb*COH))+ N3*(1/(1 + Kb*COH0)-1/(1 + Kb*COH)) +
追答
还有问题么?
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询