MATLAB: Getting error msg ”??? Undefined function or method ‘mtimes’ for input arguments of type ‘cell’.”. How to eliminate this

cellerrormtimes

prompt={'a','b','c'};
title='Please enter the following values';
answer = inputdlg(prompt,title);
a = answer{1};
b = answer{2};
c = answer{3};
then after few steps.(They are independent.)
A_1 = ((c*a*a*log(abs(1+sqrt(1+a*a))/abs(a)))/(c));
If I run the code it is showing the message ??? Undefined function or method 'mtimes' for input arguments of type 'cell'……

Best Answer

The ‘few steps’ may be important. When I run your code as posted, it runs without error and A_1 executes fine.