How to solve for unknown variables in a matrix using Cramer's Rule?

조회 수: 7 (최근 30일)
Ara Guz
Ara Guz 2021년 6월 7일
댓글: Ara Guz 2021년 6월 7일
I have matrix A (5 x 5) with known numbers, and a matrix B (5 x 1) with unknown variables. I have to solve the unknown values and put in a matrix (5 x 1). is linsolve the right command? any help would be appreciated. thank you so much!
  댓글 수: 2
James Tursa
James Tursa 2021년 6월 7일
Is this a homework assignment where you are required to use Cramer's Rule? What have you done so far and what specific problems are you having with your code?
Ara Guz
Ara Guz 2021년 6월 7일
Yes, cramer's rule is required. I figured it out already. Thank you so much!

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

답변 (1개)

Chunru
Chunru 2021년 6월 7일
Matlab way of solving a linear system of equations: Ax = b
A = magic(5); % matrix A
b = rand(5,1); % vector b
x = A\b; % unknown x

카테고리

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