solve

这篇博客介绍了如何在MATLAB中解决方程,通过`solve`函数遇到参数化解决方案的警告,并提出使用`fmincon`优化器作为替代求解策略。

用matlab解方程

s=solve(200-200*x^(-0.4)-6*x,x)

返回:

警告: The solutions are parameterized by the symbols: z2.
To include parameters and conditions in the solution, specify the 'ReturnConditions'
option.
> In solve>warnIfParams (line 500)
In solve (line 356)
警告: The solutions are valid under the following conditions: z2^7 - (100*z2^2)/3 +
100/3 == 0 & -pi/5 < angle(z2) & angle(z2) <= pi/5.
To include parameters and conditions in the solution, specify the 'ReturnConditions'
option.
> In solve>warnIfParams (line 507)
In solve (line 356)

s =

z2^5

help solve中关于z的表述:

Example 12:
syms a x y
[x0, y0, params, conditions] = solve(x^2+y, x, y, 'ReturnConditions', true)
generates a new parameter z to express the infinitely many solutions.
This z can be any

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值