From: Don Robison on 27 Mar 2010 11:07 Hello my name is Don Robison. I am having a problem with the way matlab evaluates expressions. It seems if I put a polynomial on the command prompt and I have declared the variables to be matrices the evaluation will be fine, but if I declare the polynomial to be a symbol then try to evaluate the symbolic expression instead of a literal they are not the same thing. Is there something other than eval I should be using to plug the matrices into the symbolic expression? eval seems to not be evaluating the exponent of the matrix.
From: us on 27 Mar 2010 15:18 Don Robison <joe_blow_281(a)hotmail.com> wrote in message <1111757053.455267.1269716876794.JavaMail.root(a)gallium.mathforum.org>... > Hello my name is Don Robison. I am having a problem with the way matlab evaluates expressions. It seems if I put a polynomial on the command prompt and I have declared the variables to be matrices the evaluation will be fine, but if I declare the polynomial to be a symbol then try to evaluate the symbolic expression instead of a literal they are not the same thing. > > Is there something other than eval I should be using to plug the matrices into the symbolic expression? eval seems to not be evaluating the exponent of the matrix. CSSM needs to see the code... us
|
Pages: 1 Prev: Detecting Warning Flags Next: Can't seem to get any functions to work in 7.8.0 Student |