anyone know MATLAB? Please help!

cpl593h

Member
Feb 1, 2001
108
0
0

I know this is a longshot but I have a problem set due in an hour. Does anyboy know how to solve systems of linear equations (like with matrices in linear algebra) using MATLAB? What function do i use?
 

DAM

Diamond Member
Jan 10, 2000
6,102
1
76
i used matlab my freshman year, im sure my notes are somewhere at home, but since you said only one hour, i think you are SOL, search the net and read your matlab book dude.






dam(good luck)
 

derek

Senior member
Oct 16, 1999
253
0
0
I know it but it is too late now
You better start learning the stuff cause this is the easiest thing in matlab
 

cpl593h

Member
Feb 1, 2001
108
0
0

well techically the class this problem set is for has nothing to do with matlab. I just know you can solve these type of problems really easily in MATLAB and i really suck at solving systems of linear eq. on my own, since invariably i make some arithmetic error somewhere and have to do it over again. oh well, i guess ill just attempt on my own.
 

bo_bear

Senior member
Oct 10, 1999
280
0
0
I'm not familiar with Matlab. But to solve linear system equations with matrices, all you have to do is setup the matrix according to all the coefficients of the variables and then reduce the matrix to "reduced-row echelon" form. For example, if you have this simple system of equations with x = 1, y = 2

3x + y = 5
2x + y = 4

Your matrix would look like like:

3 1 5
2 1 4

After manipulate it into reduced-row echelon form (there should be a function in MatLab that will do this automatically), your matrix will look like this:

1 0 1
0 1 2

The third column is the answer for your equations.
 

hendon

Senior member
Oct 9, 2000
373
0
0
Using the example from bo_bear,
define matrix A

A = [ 3 1; 2 1];

define vector/matrix b

b = [5; 4]

x = A\b
is your answer..
 

cpl593h

Member
Feb 1, 2001
108
0
0

woohoo! that did the trick. Thanks a lot everybody, I'm just going to barely make it. Later
 

madmacks

Senior member
Jul 14, 2000
589
0
0
OMG! i hate that program with a passion. its useful but i just hate it. thank goodness ill never lay eyes on it again. you should use MATHCAD if you are just using it for simple matrices.
 

flood

Diamond Member
Oct 17, 1999
4,213
0
76
I use matlab everyday for a research project im working on.
It involves nanotechnology and artificial intelligence.
 

Mday

Lifer
Oct 14, 1999
18,647
1
81
d00d, you can look up matlab tutorials online (though the included tutorials suck, except for the manual)...

do a search for matlab, and you'll find a wealth of information, try google. or altavista or something ;-)

as for me, i have an interest in learning both matlab and mathcad... too bad i don't have to ;-) (yet =0)
 

AmitPatel

Senior member
Oct 12, 1999
614
0
0
Yeah, we use MATLAB a lot in our chemical eng classes...lots of difeq sets, and nonlinear and linear sets to solve...the language is very simple and not hard to learn.