It turns out that the 'AdditionalPaths' value can't just be the pathdef value, it must explicitly define the path on which the file resides. Hope this helps someone in the future.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/233262-function-running-in-batch-cannot-find-mat-file-that-is-in-matlab-path#comment_303826
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/233262-function-running-in-batch-cannot-find-mat-file-that-is-in-matlab-path#comment_303826
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/233262-function-running-in-batch-cannot-find-mat-file-that-is-in-matlab-path#comment_303895
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/233262-function-running-in-batch-cannot-find-mat-file-that-is-in-matlab-path#comment_303895
Sign in to comment.