Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
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
|
|
|
|