what's the program mistake?

조회 수: 3 (최근 30일)
MA
MA 2014년 6월 4일
답변: MA 2014년 11월 10일
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일
r=solve(b)

추가 답변 (2개)

Mischa Kim
Mischa Kim 2014년 6월 4일
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일
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
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by