Problem 44946. Solve a System of Linear Equations
Example:
If a system of linear equations in x₁ and x₂ is:
2x₁ + x₂ = 2
x₁ - 4 x₂ = 3
Then the coefficient matrix (A) is:
2 1
1 -4
And the constant vector (b) is:
2
3
To solve this system, use mldivide ( \ ):
x = A\b
Problem:
Given a constant input angle θ (theta) in radians, create the coefficient matrix (A) and constant vector (b) to solve the given system of linear equations in x₁ and x₂.
cos(θ) x₁ + sin(θ) x₂ = 1
-sin(θ) x₁ + cos(θ) x₂ = 1
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
yuxiang
on 10 Sep 2022
what is coefficient matrix?I can't understand the meaning of the question
poonam k
on 23 Jun 2024
simple problem
未来
on 30 Dec 2024
好!
Solution Comments
Show commentsGroup

Draw numbers!
- 10 Problems
- 413 Finishers
- Draw a '1' in a zero matrix!
- Find x rows where the sum of the numbers is the maximum
- Draw a '5' in a zero matrix!
- Draw a '2' in a zero matrix!
- Draw a '3' in a zero matrix!
- Draw a '8' in a zero matrix!
- Draw a '7' in a zero matrix!
- Draw a '9' in a zero matrix!
- Draw a '6' in a zero matrix!
- Draw a '4' in a zero matrix!
Problem Recent Solvers12832
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!