matlab中用solve解方程组的问题,为何给出空矩阵,应该怎么改?>> [Xm,X0,K0]=solve('Xm/((1+Xm/X0-1)*exp(-K0))=533.34','Xm/((1+Xm/X0-1)*exp(-2*K0))=534.38','Xm/((1+Xm/X0-1)*exp(-3*K0))=566.03','Xm','X0','K0')Warning:Explicit solution cou
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 16:19:04
matlab中用solve解方程组的问题,为何给出空矩阵,应该怎么改?>> [Xm,X0,K0]=solve('Xm/((1+Xm/X0-1)*exp(-K0))=533.34','Xm/((1+Xm/X0-1)*exp(-2*K0))=534.38','Xm/((1+Xm/X0-1)*exp(-3*K0))=566.03','Xm','X0','K0')Warning:Explicit solution cou
matlab中用solve解方程组的问题,为何给出空矩阵,应该怎么改?
>> [Xm,X0,K0]=solve('Xm/((1+Xm/X0-1)*exp(-K0))=533.34','Xm/((1+Xm/X0-1)*exp(-2*K0))=534.38','Xm/((1+Xm/X0-1)*exp(-3*K0))=566.03','Xm','X0','K0')
Warning:Explicit solution could not be found.
> In solve at 81
Xm =
[ empty sym ]
X0 =
[]
K0 =
[]
matlab中用solve解方程组的问题,为何给出空矩阵,应该怎么改?>> [Xm,X0,K0]=solve('Xm/((1+Xm/X0-1)*exp(-K0))=533.34','Xm/((1+Xm/X0-1)*exp(-2*K0))=534.38','Xm/((1+Xm/X0-1)*exp(-3*K0))=566.03','Xm','X0','K0')Warning:Explicit solution cou
Warning: Explicit solution could not be found.
这句话的意思是不能找到精确解,也就是matlab里面solve函数的内部算法对于你这个方程组不适用,所以你这个方程组不能用solve求解
而且,观察你的三个方程,显然是无解的,第一式除以第二式可以得出exp(K0)=533.34/534.48
第二式除以第三式可以得出
exp(K0)=534.48/566.03
显然满足条件的K0不存在.
另外你的方程里面有表达式(1+Xm/X0-1),为什么不直接写Xm/X0呢?是(X0-1)少了括号?