Essays
Topics
Writing Tool
Machine Learning AI
ChatGPT
US History
Presidents of the United States
Joseph Robinette Biden
Donald Trump
Barack Obama
US States
States Ranked by Size & Population
States Ranked by Date
IPL
>
Mathematics
>
Solving Linear Equations Using Matrix Inversion Method
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 A
mat_A = [0
-3
7;
1
2
-1;
5 -2 0];
% Right-hand side vector B
mat_B = [2;
3;
2];
% Solve using the inverse method
Conc_ = inv(mat_A) * mat_B;
% Display the results
Conc_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);