Info

此问题已关闭。 请重新打开它进行编辑或回答。

Function definitions are not permitted in this context

1 次查看(过去 30 天)
Please help me this function. Detail in code attach.
Thanks you so much !

回答(1 个)

Stephan
Stephan 2019-7-13
编辑:Stephan 2019-7-13
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.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by