"Function definitions are not permitted in this context."

4 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2018 年 4 月 15 日
回答済み: David Fletcher 2018 年 4 月 15 日
I use R2017a and I got the above error message when trying to define a function in a script. Please advise.

回答 (1 件)

David Fletcher
David Fletcher 2018 年 4 月 15 日
If you have a function in a script (allowed from R2016 onwards I think), it must go at the end, after all the script code

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by