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:
Help solving a equation system

Subject: Help solving a equation system

From: Diego Vidaurre Villagomez

Date: 6 Mar, 2012 05:57:12

Message: 1 of 3

Hello to everyone,

I'm kind of new with matlab and i've been trying to solve a system of equations for a trajectory planning algorithm.

What I need is to get the value of the variables "a13, a14, a21, a22, a23, an3 and an4" in connection with this next variables.

I have Y=C*X where:

y=[d1-a0*t1^2/2-v0*t1; -a0*t1-v0; -a0; d2; -af*tn+vf; af; dn+af*tn^2/2-vf*tn]

c=[1 1 0 0 0 0 0;3/t1 4/t1 -1/t2 0 0 0 0; 6/(t1^2) 12/(t1^2) 0 -2/(t2^2) 0 0 0; 0 0 1 1 1 0 0; 0 0 1/t2 2/t2 3/t2 -3/tn 4/tn; 0 0 0 2/(t2^2) 6/(t2^2) 6/(tn^2) -12/(tn^2); 0 0 0 0 0 1 -1]

x=[a13;a14;a21;a23;an3;an4]

As you can see the X matrix is where all the variables i need are, what i dont quite undestand is how can i get the variables from the equations. Ive tried the 'solve' function already but i keep getting an error of dimension even though the equations are well balanced.

I hope someone can help me with this problem.

Thank you in advance, any help is appreciated.

Subject: Help solving a equation system

From: Bruno Luong

Date: 6 Mar, 2012 07:23:11

Message: 2 of 3

Because your problem is linear:

help slash

Bruno

Subject: Help solving a equation system

From: Roger Stafford

Date: 6 Mar, 2012 07:35:12

Message: 3 of 3

"Diego Vidaurre Villagomez" wrote in message <jj48vn$o0p$1@newscl01ah.mathworks.com>...
> x=[a13;a14;a21;a23;an3;an4]
- - - - - - - - -
  Your 'x' vector has only six unknowns in it, with 'a22' missing. Would that explain your error message?

Roger Stafford

Tags for 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