Simple Script not working

1 view (last 30 days)
Charles
Charles on 17 Jun 2014
Commented: Image Analyst on 17 Jun 2014
******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

Accepted Answer

Image Analyst
Image Analyst on 17 Jun 2014
fuction is not a keyword. Try function instead.
  2 Comments
Charles
Charles on 17 Jun 2014
BWAHAHAHA lol I knew i wasn't crazy.
Image Analyst
Image Analyst on 17 Jun 2014
Can you please mark as Accepted? Thanks.

Sign in to comment.

More Answers (0)

Categories

Find more on Images 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!