linear equation codes
linear equation codes
(OP)
hi,
i wanted to ask a question, i have a series of linear equations (ie. y=ax+b) i wanted to combine them into one expression, i have searched in matlab help, it show how to solve the eqts simultaneously (finding x and y) using the function X=A\B. i was wondering if there is a function that i can use to combine these equations into one equation and plot that equation in a graph. i was thinking after finding X, then i put the function plot(X), but i am not really sure if it is right.
any help would be appreciated :)
i wanted to ask a question, i have a series of linear equations (ie. y=ax+b) i wanted to combine them into one expression, i have searched in matlab help, it show how to solve the eqts simultaneously (finding x and y) using the function X=A\B. i was wondering if there is a function that i can use to combine these equations into one equation and plot that equation in a graph. i was thinking after finding X, then i put the function plot(X), but i am not really sure if it is right.
any help would be appreciated :)





RE: linear equation codes
If you have Ax = B, then x = A\B
If you get some error, make sure A is NXN and B is 2X1
rank(A) should be N
=====================================
Eng-tips forums: The best place on the web for engineering discussions.
RE: linear equation codes
=====================================
Eng-tips forums: The best place on the web for engineering discussions.