Solving Linear System of Equations with a Real Parameter
Show older comments
Hi, I'm a University Student, I never used Matlab and I have to solve with Matlab several Linear Systems of Equations with a Real Parameter, like this:.png)
.png)
λ∈ℝ
Since I really don't know anything about Matlab it would be great if there is some sort of Pre-Compiled code to solve this kind of Systems so every time I just have to replace the values in the equations and I can easily get the solutions I need.
Thanks a lot,
Have a nice one
4 Comments
darova
on 30 Nov 2019
What do you know about mathematics?
What can you say about this:
Star Strider
on 30 Nov 2019
@Gauss — Our apologies.
Gauss
on 30 Nov 2019
Star Strider
on 30 Nov 2019
Edited: Star Strider
on 30 Nov 2019
@Gauss —
My pleasure.
Jim Riggs posted one that may be helpful.
Accepted Answer
More Answers (1)
Steven Lord
on 2 Dec 2019
0 votes
What do you know and what are you trying to find?
Do you know the value of λand you're trying to find the X values? If so, build your coefficient matrix and right-hand side vector and use the backslash operator (\) to solve the system. Both the coefficient matrix and right-hand side will include λ. See the documentation page for the mldivide function for more information.
Do you know the values of X and you're trying to find λ? If so, you could use fzero on one of the equations that involve λ.
Do you know neither λ nor the values of X and you're trying to find all five? In this case you don't have a linear system, you have a nonlinear system (due to the λ*X1 and λ*X3 terms) and so you'd need to use something like fsolve from Optimization Toolbox.
Categories
Find more on Calculus in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!