what's the program mistake?

Más respuestas (2)

Mischa Kim
Mischa Kim el 4 de Jun. de 2014

0 votos

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

2 comentarios

MA
MA el 4 de Jun. de 2014
Hi,it doesn't work
Mahdi
Mahdi el 4 de Jun. de 2014
Why isn't it working? What's the error that you're getting?

Iniciar sesión para comentar.

Mahdi
Mahdi el 4 de Jun. de 2014

0 votos

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 comentarios

MA
MA el 4 de Jun. de 2014
it's wrong
Mahdi
Mahdi el 4 de Jun. de 2014
Editada: Mahdi el 4 de Jun. de 2014
You will need to provide more information why you're not getting the answer that you want. Please read this.
MA
MA el 4 de Jun. de 2014
error

Iniciar sesión para comentar.

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Preguntada:

MA
el 4 de Jun. de 2014

Respondida:

MA
el 10 de Nov. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by