Error function definitions are not permitted in this context
16 views (last 30 days)
Show older comments
Maria de São Luís Castro
on 3 Nov 2019
Edited: Maria de São Luís Castro
on 5 Nov 2019
Hi,
Im trying to execute timbre toolbox on Mathlab 2017a, however there is an error ..
Can you help me in understanding this error? Thank you

12 Comments
Adam Danz
on 4 Nov 2019
ahh... in that case, i'm not sure what to recommend if the output is not defined within the function. Is there a typo or any indication of what the output should be?
Accepted Answer
Adam Danz
on 3 Nov 2019
Edited: Adam Danz
on 4 Nov 2019
It appears that you're running copy-pasted code directly from the command window. Function definitions are not supported from the command window. The function must be defined from within the editor. So, you'll need to run your file from the editor, not from the command window.
Here are some tips to run parts of code from within the editor.

0 Comments
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!