Systems of Linear Equations Systems of equations using solve command. SYNTAX [x1,x2, ...] = solve(eqn1, eqn2,..) Example: Solve the systems of equation. graph the equations. PROBLEM 1 x + 7y=3

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Question

Can you answer this and send it ASAP I
really need it for my homework

Systems of Linear Equations
Systems of equations using solve command.
SYNTAX
[x1,x2,...] = solve(eqn1, eqn2...)
Example:
Solve the systems of equation. graph the equations.
PROBLEM 1
PROBLEM 2
x+7y=3
2x-5y = 4
Solution:
syms x y x1 x2 x3
%Problem 1
x₁2x₂ + 3x₂=5
3x₁ + 4x₂ - 5x3 = 7
x₁ + 8x₂-11x3 = 2
eqn1 = x+7*y==3;
eqn2 = 2*x-15*y==4;
[Rt1, Rt2] = solve (eqn1, eqn2);
ezplot (eqn1)
hold on
end
grid on
ezplot (eqn2)
if isempty(Rt1)
else
text1 = "The system is inconsistent";
fprintf(text1);
plot (Rt1, Rt2,'*')
text1= "The system is consistent";
fprintf(text1);
hold off
plot (Rt1, Rt2,'*')
text1= "The system is consistent";
fprintf(text1);
hold off
My Solutions >
Transcribed Image Text:Systems of Linear Equations Systems of equations using solve command. SYNTAX [x1,x2,...] = solve(eqn1, eqn2...) Example: Solve the systems of equation. graph the equations. PROBLEM 1 PROBLEM 2 x+7y=3 2x-5y = 4 Solution: syms x y x1 x2 x3 %Problem 1 x₁2x₂ + 3x₂=5 3x₁ + 4x₂ - 5x3 = 7 x₁ + 8x₂-11x3 = 2 eqn1 = x+7*y==3; eqn2 = 2*x-15*y==4; [Rt1, Rt2] = solve (eqn1, eqn2); ezplot (eqn1) hold on end grid on ezplot (eqn2) if isempty(Rt1) else text1 = "The system is inconsistent"; fprintf(text1); plot (Rt1, Rt2,'*') text1= "The system is consistent"; fprintf(text1); hold off plot (Rt1, Rt2,'*') text1= "The system is consistent"; fprintf(text1); hold off My Solutions >
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education