# Solving Linear Equations

• September 21st 2009, 06:32 AM
Karl Harder
Solving Linear Equations
I am trying to find the values of t and v of 2 equations. The equations are

$distance = 25t-100v$

$distance = 100v-35(600-t)$

where t = time and v = velocity at the time t

I am trying to solve with matlab and so far this is what i have got

clear all
syms t v
eqn1=25*t-100*v;
eqn2=100*v-35*(600-t);
[X,Y]=solve(eqn1,eqn2)

The result that i get is t = 350 & v = 175/2. I am expecting the result for t to be about 650 and v to be about 25.

Can anyone give me an idea of what i am doing wrong and guide me in the right path.

Thanks
• September 22nd 2009, 04:38 AM
BobP
Matlab is solving (correctly) the equations

$25t-100v=0,$
$100v-35(600-t)=0.$

What equations do you want it to solve ?
Does $distance$ have a (numerical) value ?