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

 채택된 답변

추가 답변 (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 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