Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
solving three equations in three unknowns.

Subject: solving three equations in three unknowns.

From: david

Date: 16 Mar, 2012 10:02:17

Message: 1 of 2

Hello all,
I have the following three equations in three unknowns x1,x2,x3 :
0.2*x1-0.5*x2=0
0.15*x1-0.5*x3=0
-0.3*x1+0.5*x2+0.5*x3=0
I tried to solve them in matlab as x=A\b where
A = [0.2 -0.5 0; 0.15 0 -0.5; -0.35 0.5 0.5] and b = [0 0 0]' but I got a zero solution which is a trial solution I think. Could you please help me finding another solution to these equations?

Thanks in advance

David

Subject: solving three equations in three unknowns.

From: Torsten

Date: 16 Mar, 2012 10:22:30

Message: 2 of 2

Am Freitag, 16. März 2012 11:02:17 UTC+1 schrieb david :
> Hello all,
> I have the following three equations in three unknowns x1,x2,x3 :
> 0.2*x1-0.5*x2=0
> 0.15*x1-0.5*x3=0
> -0.3*x1+0.5*x2+0.5*x3=0
> I tried to solve them in matlab as x=A\b where
> A = [0.2 -0.5 0; 0.15 0 -0.5; -0.35 0.5 0.5] and b = [0 0 0]' but I got a zero solution which is a trial solution I think. Could you please help me finding another solution to these equations?
>
> Thanks in advance
>
> David

Try

Z=null(A)

If you only get the zero vector for Z, then x=0 is the only solution
for your system of linear equations.

Best wishes
Torsten.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us