I am using "requiredFilesAndProducts" to try and find all dependencies of my function, but it is failing to work, saying it cannot find my function. Here is the command I am using:
>> [fList,pList] = matlab.codetools.requiredFilesAndProducts('packageName.functionName.m');
Which gives the error:
Error using matlab.codetools.requiredFilesAndProducts (line 91)
File, function or class "packageName.functionName.m" may not exist. Neither WHICH nor EXIST could find an exact, case-sensitive match. Please check the spelling of the name, and that any required directories are on the MATLAB path.
However, "which" is able to find the file:
>> which packageName.functionName
returns the path to the file.
Why is "requiredFilesAndProducts" not working?
Best Answer