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!