×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

linear equation codes

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 :)

RE: linear equation codes

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.

RE: linear equation codes

Correction in bold:

Quote:


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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources