Does anyone know why I keep on getting an unexpected Matlab error in this program. It says it occurs in line for (%the original equation) and I think it has something to do with a coefficient to x? I don't know, I have ran this program before with a different equation and it works. ANy help would be greatly appreciated and suggestions on the fix...
x=input('Type the number 32 for your intial guess:')
y=-5.6703*e-8x^4-2x+548.30 %orginal equation
a=x+.0001 %find derv 1
"Mason Savage" <firstname.lastname@example.org> wrote in message <email@example.com>...
> Does anyone know why I keep on getting an unexpected Matlab error in this program.
> y=-5.6703*e-8x^4-2x+548.30 %orginal equation
You can't type "8x" or "2x". I guess you mean "2*x"? I'd try adding a few brackets too.
Also, it's much more useful if you post the exact error message...