Error function definitions are not permitted in this context

조회 수: 16 (최근 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
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 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