what's the program mistake?

1 Ansicht (letzte 30 Tage)
MA
MA am 4 Jun. 2014
Beantwortet: MA am 10 Nov. 2014
clear all clc; syms x A=[x 2 1;1 0 -x;5 1 x]; b=det(A) r=solve('b=0','x')

Akzeptierte Antwort

MA
MA am 10 Nov. 2014

Weitere Antworten (2)

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

Melden Sie sich an, um zu kommentieren.


Mahdi
Mahdi am 4 Jun. 2014
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 Kommentare
Mahdi
Mahdi am 4 Jun. 2014
Bearbeitet: Mahdi am 4 Jun. 2014
You will need to provide more information why you're not getting the answer that you want. Please read this.
MA
MA am 4 Jun. 2014
error

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by