Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK 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
Feb 7, 2007
6
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 :)
 
Replies continue below

Recommended for you

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