Problems with paths and loading toolboxes
3 次查看(过去 30 天)
显示 更早的评论
Hello, I'm trying to work some dde simulations and whenever I try running my files the following error appears:
Undefined function 'odefinalize' for input arguments of type 'struct'.
I've tried re-adding the folder containing the file odefinalize.m to the path file which did not change anything.
I'm also having issues with the path file. Sometimes, while running some codes (working fine) and then running another code, with the popup asking to add the folder to paths which I do, the other code gives me the same type of errors as mentioned before. Even weirder, when I go back to the previously working codes and execute them again, "undefined" errors now pop up.
I know it's not the code's fault, I get the same results copying example codes from matlab and putting them in other folders...
Does anyone have ideas / suggestions?
0 个评论
回答(1 个)
Sarah Mohamed
2018-1-5
After adding the folder containing 'odefinalize' to your path, try using the 'which' command to confirm that the function is found. E.g.:
>>which odefinalize
If you see the correct function 'odefinalize' listed, then perhaps the issue is that it is being passed an unsupported input argument ('struct', based on the error message).
In addition, if you are using 'addpath' or right-clicking the folder in the Current Folder window to add the folder to the MATLAB search path, and you would like it to remain on the path in future MATLAB sessions, make sure you execute the 'savepath' command afterwards.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!