Finding missing array value of a singular matrix

조회 수: 8 (최근 30일)
Ollie
Ollie 2017년 4월 29일
댓글: Ollie 2017년 4월 29일
How do I use matlab to find the value of x that makes the matrix A = [2,5,7;-2,3,-4;1,5,x] singular ie has determinant zero?

채택된 답변

Stephen23
Stephen23 2017년 4월 29일
편집: Stephen23 2017년 4월 29일
A simple numerical solution using fzero:
>> fun = @(x)det([2,5,7;-2,3,-4;1,5,x]);
>> x = fzero(fun,0.1)
x =
4.4375
>> fun(x)
ans =
0

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by