Input argument 'x' is undefined????
Input argument 'x' is undefined????
(OP)
can anyone tell me why whenever I define a function like:
function c=g(x)
c=x^2;
after run and save
the system tells me:: ???Input argument 'x' is undefined
thanks
function c=g(x)
c=x^2;
after run and save
the system tells me:: ???Input argument 'x' is undefined
thanks





RE: Input argument 'x' is undefined????
In the matlab workspace type "answer = g(1.234)". Does it work now?
M
--
Dr Michael F Platten
RE: Input argument 'x' is undefined????
I'm a new learner,,,,,,,,so,,,,,,,