******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

 채택된 답변

Image Analyst
Image Analyst 2014년 6월 17일

1 개 추천

fuction is not a keyword. Try function instead.

댓글 수: 2

Charles
Charles 2014년 6월 17일
BWAHAHAHA lol I knew i wasn't crazy.
Image Analyst
Image Analyst 2014년 6월 17일
Can you please mark as Accepted? Thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2014년 6월 17일

댓글:

2014년 6월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by