Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

linear equation codes

Status
Not open for further replies.

minami

Mechanical
Joined
Feb 7, 2007
Messages
6
Location
AU
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 :)
 
It's hard to figure out what you're asking.
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.
 
Correction in bold:
If you have Ax = B, then x = A\B

If you get some error, make sure A is NXN and B is NX1
rank(A) should be N

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top