MATLAB: Error using inline (line 51) Input must be a character vector.

marc florenz arnaldo

Error using inline (line 51) Input must be a character vector.

Best Answer

s = input('Input the function interms of g(x)\n','s') ;
Try using 's' in input, this will convert the entered value into a string. inline needs string. When you have entered 0, it is taken as a number and you are getting error.