Error function definitions are not permitted in this context

3 次查看(过去 30 天)
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
Sem Título.jpg
  12 个评论
Maria de São Luís Castro
Q.Is the first one answered regarding the function definition error?
-->The mistake here as I understood is that the script was run in the command window instead of editor...However as I said before I selected the script from the editor window and I don't know why it appears on the command window in the end...
Q.Do you understand the comments by myself and Guillaume regarding the config_s error?
-->Yes, it could be a function..however the only path required in the script is to define "w_Directory"
Q.Now for your 3rd question, the line you're asking about (copied below) is a function definition that exists in an m file. FILE_s is an output that is defined somehwere within the function Gget_filelist().
--> Right, it should be defined but is not
Thank you
Adam Danz
Adam Danz 2019-11-4
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?

请先登录,再进行评论。

采纳的回答

Adam Danz
Adam Danz 2019-11-3
编辑:Adam Danz 2019-11-4
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 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by