Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Ara Guz
Ara Guz am 7 Jun. 2021
Kommentiert: Ara Guz am 7 Jun. 2021
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 Kommentare
James Tursa
James Tursa am 7 Jun. 2021
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 am 7 Jun. 2021
Yes, cramer's rule is required. I figured it out already. Thank you so much!

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Chunru
Chunru am 7 Jun. 2021
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

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by