using Cramers rule to find X variables for an equation without using right division

조회 수: 2 (최근 30일)
How would I solve this system of equations using cramer's rule WITHOUT the use of right divison
the matrices for the five equations end up being
A=[3 -2 6 1 3; 1.5 1 -3 4 2; 1 4 2 -3 -1; .5 -3.5 2.5 .5 1.5; 4 2 1 -2 -3]
B= [-11.75; 19; -23; -1.5;-3.5]
where B is the answers and I am solving for X
A*X=B
thank you very much
  댓글 수: 2
Roger Stafford
Roger Stafford 2013년 9월 22일
Presumably you understand Cramer's rule. What is it about applying it that you need help with? To get you started, one of the steps you need to perform is to replace various entire columns in A with the column vector B. Suppose for example you are at the third column. You would do it like this:
C = A;
C(:,k) = B;
where k is equal to 3. You can do this as part of a for-loop with k increasing from 1 up to 5. You will also need matlab's 'det' function for finding the determinant of a square matrix.
Rakib Seemanto
Rakib Seemanto 2020년 11월 1일
how to find the value of x and y by using Cramer’s rule from these equations:
𝑎𝑥+𝑏𝑦=𝑐 and 𝑑𝑥+𝑒𝑦=𝑓 ???

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

답변 (0개)

카테고리

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