Error function definitions are not permitted in this context

25 ビュー (過去 30 日間)
Maria de São Luís Castro
Maria de São Luís Castro 2019 年 11 月 3 日
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
Maria de São Luís Castro 2019 年 11 月 4 日
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 Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by