MATLAB: Inline.inline at 47 inline() Hello people, Can someone explain what's kind of error is this: inline.inline at 47 Input must be a string. P.S. I use diff function in my code. Thanks. Best Answer syms xfun = sym( get(handles.edit4,'String') );f = matlabFunction(fun, x);dfun = diff( fun, x );df = matlabFunction(dfun, x); Related SolutionsMATLAB: String function derivative The dot operators are not valid MuPAD code, and it is MuPAD code that must be sym()'d, not MATLAB code.Not 'sin(x)+x.^2+cos(2*y)' but 'sin(x)+x^2+cos(2*y)' MATLAB: Differentiate an inline function f = inline('x^8'); % Our inline function.D8 = diff(sym(f),8) % Find the 8th derivativeD8 == prod(1:8) % Check. ans = 1 as expected. Related QuestionWhat’s wrong with the folow expressionSolving two symbolic equations simultaneously
Best Answer