필터 지우기
필터 지우기

Simple Script not working

조회 수: 2 (최근 30일)
Charles
Charles 2014년 6월 17일
댓글: Image Analyst 2014년 6월 17일
******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일
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개)

카테고리

Help CenterFile Exchange에서 Construct and Work with Object Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by