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
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
2020년 11월 1일
how to find the value of x and y by using Cramer’s rule from these equations:
𝑎𝑥+𝑏𝑦=𝑐 and 𝑑𝑥+𝑒𝑦=𝑓 ???
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!