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 日

0 投票

r=solve(b)

その他の回答 (2 件)

Mischa Kim
Mischa Kim 2014 年 6 月 4 日

0 投票

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 日

0 投票

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 件のコメント

MA
MA 2014 年 6 月 4 日
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.
MA
MA 2014 年 6 月 4 日
error

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

質問済み:

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