Function definitions are not permitted in this context

Please help me this function. Detail in code attach.
Thanks you so much !

回答 (1 件)

Stephan
Stephan 2019 年 7 月 13 日
編集済み: Stephan 2019 年 7 月 13 日

0 投票

Add the missing
end
after line 148 (from your outer while loop) to get rid of this error. This end is missing, so Matlab assumes that you declare functions inside a while loop, which is not allowed.

この質問は閉じられています。

タグ

質問済み:

2019 年 7 月 13 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by