Simple Script not working

4 ビュー (過去 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 Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by