******start Script*****
fuction err= WebersLawErr(p,x,y)
pred=WebersLaw(p,x);
err=sum((pred(:)-y(:)).^2);
******end script*******
%Matlab Command_
EDU>> err= WebersLawErr(p,x,y)
Attempt to execute SCRIPT WebersLawErr as a function: C:\Users\radioshack\Documents\MATLAB\WebersLawErr.m

 Respuesta aceptada

Image Analyst
Image Analyst el 17 de Jun. de 2014

1 voto

fuction is not a keyword. Try function instead.

2 comentarios

Charles
Charles el 17 de Jun. de 2014
BWAHAHAHA lol I knew i wasn't crazy.
Image Analyst
Image Analyst el 17 de Jun. de 2014
Can you please mark as Accepted? Thanks.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 17 de Jun. de 2014

Comentada:

el 17 de Jun. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by