dear all
i have a problem with calculating the derivative of a aglebraic expression which is string. how can i use diff to calculate the derivative of expression?
the problem is as below:
eq='x^2+x';f=str2func(['@(x)',eq]);g=diff(f);
thanks alot
Best Answer