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!