Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Function definitions are not permitted in this context

1 vue (au cours des 30 derniers jours)
Truong Sang
Truong Sang le 13 Juil 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
Please help me this function. Detail in code attach.
Thanks you so much !

Réponses (1)

Stephan
Stephan le 13 Juil 2019
Modifié(e) : Stephan le 13 Juil 2019
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.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by