Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

undefined function or varaible

3 Ansichten (letzte 30 Tage)
Samuel Crofts
Samuel Crofts am 28 Dez. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

madhan ravi
madhan ravi am 28 Dez. 2018
Bearbeitet: madhan ravi am 28 Dez. 2018
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 Kommentare
Samuel Crofts
Samuel Crofts am 28 Dez. 2018
Thank you
madhan ravi
madhan ravi am 28 Dez. 2018
ok so it's related with gui maybe someone else can help

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by