getting error msg ''??? Undefined function or method 'mtimes' for input arguments of type 'cell'.''. How to eliminate this?

1 view (last 30 days)
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'......

Accepted Answer

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

More Answers (0)

Categories

Find more on Entering Commands in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!