Solving Linear Equations Using Matrix Inversion Method

School
Toronto Metropolitan University**We aren't endorsed by this school
Course
CHE 338
Subject
Mathematics
Date
Dec 11, 2024
Pages
1
Uploaded by AgentDiscovery10100
% Coefficient matrix Amat_A = [0 -3 7;1 2 -1;5 -2 0];% Right-hand side vector Bmat_B = [2;3;2];% Solve using the inverse methodConc_ = inv(mat_A) * mat_B;% Display the resultsConc_1 = Conc_(1);Conc_2 = Conc_(2);Conc_3 = Conc_(3);fprintf('X1 = %.2f mg/m^3\n', Conc_1);fprintf('X2 = %.2f mg/m^3\n', Conc_2);fprintf('X3 = %.2f mg/m^3\n', Conc_3);
Background image