For example, if I have the Symbolic Math Toolbox, and I execute the following command within MATLAB 6.5.1 (R13SP1):
diff('x^2')
I receive the expected result:
ans = 2*x
However, in MATLAB 7.0 (R14), I receive the unexpected result:
ans = -26 -44
Best Answer