Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Help,symbolic math,multivariable eqn
Replies: 2   Last Post: Sep 22, 1996 11:45 PM

 Messages: [ Previous | Next ]
 SHERRY KUNOVIC Posts: 5 Registered: 12/7/04
Help,symbolic math,multivariable eqn
Posted: Sep 17, 1996 12:05 PM

I really hope someone can help me with this one...

I need matlab to help me generate a really long eqation with several
terms. Two of the variables have known values stored in a matrix but
there are also 6 unknown variables. Once I get the equation entered, I am
going to run it through Optimization toolbox.

The equation goes something like this:
f=(y1-c1(exp(-a1*t1)-exp(-a2*t1))^2 + (y2-c1(exp(-a1*t2)-exp(-a2 *t2))^2 +
...

y and t are the known matrices, c1, a1, a2 are unknowns. Y and t increment
in each term and then the terms are summed together. There are 20 terms
total.

How do I enter the equation with matlab recognizing the unknowns and still
substituting the values from the matrices? Then how do I get it to sum
the terms?

Thank you!

s009slk@discover.wright.edu

Date Subject Author
9/17/96 SHERRY KUNOVIC
9/17/96 Darrin Smith
9/22/96 SHERRY KUNOVIC