what's the program mistake?

2 次查看(过去 30 天)
MA
MA 2014-6-4
回答: MA 2014-11-10
clear all clc; syms x A=[x 2 1;1 0 -x;5 1 x]; b=det(A) r=solve('b=0','x')

采纳的回答

MA
MA 2014-11-10

更多回答(2 个)

Mischa Kim
Mischa Kim 2014-6-4
Hello Ali, use instead
r = solve(b==0)
  2 个评论
MA
MA 2014-6-4
Hi,it doesn't work
Mahdi
Mahdi 2014-6-4
Why isn't it working? What's the error that you're getting?

请先登录,再进行评论。


Mahdi
Mahdi 2014-6-4
Try this?
clear all
clc;
syms x
A=[x 2 1;1 0 -x;5 1 x];
b=det(A)
r=eval(solve(b==0))
  3 个评论
Mahdi
Mahdi 2014-6-4
编辑:Mahdi 2014-6-4
You will need to provide more information why you're not getting the answer that you want. Please read this.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by