4 Comments

Which b? You have two.
Matt J
Matt J on 5 Jul 2018
Edited: Matt J on 5 Jul 2018
Looks like your Vandermonde matrix is flipped left-to-right. Or your [a,b,c] vector is upside down.
Matt J
Matt J on 5 Jul 2018
Edited: Matt J on 5 Jul 2018
Note: instead of eliminating 'c', you could also just use lsqlin() with an equality constraint.

Sign in to comment.

 Accepted Answer

Matt J
Matt J on 5 Jul 2018
Seems to me that B should equal y.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!