function call,,,,getting error
1 回表示 (過去 30 日間)
古いコメントを表示
hi, i am receiving the following error while i am inserting the function in the statement, can u plz help me to rid out of it??
Function definitions are not permitted at the prompt or in scripts.
please help
0 件のコメント
回答 (1 件)
Oleg Komarov
2011 年 2 月 16 日
You're allowed to define a function only at the beginning of an .m file, then saving it and calling the function as fcn(x,y) at the cmd window or in a script you can get it 'working'.
Oleg
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!