Borrar filtros
Borrar filtros

Problems with paths and loading toolboxes

3 visualizaciones (últimos 30 días)
Romain BULTEAU
Romain BULTEAU el 3 de En. de 2018
Respondida: Sarah Mohamed el 5 de En. de 2018
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?

Respuestas (1)

Sarah Mohamed
Sarah Mohamed el 5 de En. de 2018
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.

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by