Info
This question is closed. Reopen it to edit or answer.
Strange Undefined variable or control error for a function
1 view (last 30 days)
Show older comments
Hi, I created a control file that calls on three separate functions to perform a task. They are all in a single directory. I copied and pasted all of these four files to a different directory to do something different and they work fine. However returning to the original directory, I try to run the code from the 'Control' file and I get an 'undefined variable or function 'control' ' error. I've tried renaming all of the files and it still doesn't work. They are all in the same directory as I have used 'which' to make sure everything is okay.
Does anyone have any insight into what to do here? I have made no changes to the actual code since copying and pasting.
Many Thanks
Jack
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!