Got Questions? Get Answers.
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:
Solve Symbolic system of equation

Subject: Solve Symbolic system of equation

From: João Salvador

Date: 5 Dec, 2012 21:24:09

Message: 1 of 3

I have a symbolic matrix (for example C(m,n) ) and each entry (m,n) represents an equation that must be equal to zero.

So how can I solve the system of equations composed by each entry(m,n) of the matrix??

Subject: Solve Symbolic system of equation

From: Roger Stafford

Date: 5 Dec, 2012 22:59:08

Message: 2 of 3

"João Salvador" wrote in message <k9oe1p$6be$1@newscl01ah.mathworks.com>...
> I have a symbolic matrix (for example C(m,n) ) and each entry (m,n) represents an equation that must be equal to zero. So how can I solve the system of equations composed by each entry(m,n) of the matrix??
- - - - - - - - - -
  Nothing is to be gained by placing equations in a matrix. The function 'solve' can often solve a set of equations but these must be placed as input arguments to the function, one equation per argument. Moreover you should in general have the same number of unknowns as equations.

  You should realize that there is no guarantee that a particular set of equations can be solved in this manner. They can easily be beyond the capability of 'solve', in which case 'solve' will simply issue the message "No explicit solution found." In this case one would have to resort to numerical methods of solution using some of the functions in the Optimization Toolbox.

  In case your equations are all linear in the unknowns, they can be solved using matrices of their coefficients but not matrices of the equations.

Roger Stafford

Subject: Solve Symbolic system of equation

From: Christopher Creutzig

Date: 6 Dec, 2012 12:51:51

Message: 3 of 3

On 05.12.12 22:24, João Salvador wrote:
> I have a symbolic matrix (for example C(m,n) ) and each entry (m,n) represents an equation that must be equal to zero.
>
> So how can I solve the system of equations composed by each entry(m,n) of the matrix??

I can't promise anything without seeing your specific inputs, but

solve(C(:))

may well be all you need.



Christopher

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