Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

undefined function or varaible

조회 수: 6 (최근 30일)
Samuel Crofts
Samuel Crofts 2018년 12월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
Every time i run my file, it comes up with an error 'undefined function or variable (variable name). However, the name of the function is the old name of the file, i called it attempt2, however, i managed to get a good start on my project, so renamed the file to something else, and did a search and replace with everything attempt2. The error still happens

답변 (1개)

madhan ravi
madhan ravi 2018년 12월 28일
편집: madhan ravi 2018년 12월 28일
The function has to be save in a separate file with the same name of a function if your using prior 2016b but since 2016b a script file can contain a function at the very end of the file.
Note: The file names should be unique not repeated (meaning the script file and the function name shouldn't be the same) .
doc function % read it
  댓글 수: 4
Samuel Crofts
Samuel Crofts 2018년 12월 28일
Thank you
madhan ravi
madhan ravi 2018년 12월 28일
ok so it's related with gui maybe someone else can help

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by