what's the program mistake?

clear all clc; syms x A=[x 2 1;1 0 -x;5 1 x]; b=det(A) r=solve('b=0','x')

更多回答(2 个)

Hello Ali, use instead
r = solve(b==0)

2 个评论

Hi,it doesn't work
Why isn't it working? What's the error that you're getting?

请先登录,再进行评论。

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 个评论

it's wrong
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.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

提问:

MA
2014-6-4

回答:

MA
2014-11-10

Community Treasure Hunt

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

Start Hunting!

Translated by