MATLAB Answers

Linear Equations infinite solutions parametric form

9 views (last 30 days)
Hi,
I am trying to solve a system of the form Ax = b which has infinte many solutions:
for eg: 2x+y = 3; 4x+2y = 6
I want Matlab to return the solution in paramtric form: sol = (3-y/2, y)^T, something like this.
I there a method to achieve this easily without writing a complicated script?
Thanks in advance.
  2 Comments
Virendrasingh Pawar
Virendrasingh Pawar on 17 Sep 2021
It's a homework problem, small size cases (3*5 or 5*5 atmost). I am hoping for Matlab to retun the solution in paramteric form, can this be done? Thanks.

Sign in to comment.

Accepted Answer

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by