What does “shadows in the MATLAB path” mean? How to do this in a file?

enter image description here

I need to do this always before running the unitTester file. I do not understand why this is required. What does it mean? And why "Add to Path > Selected Folders and Subfolders"not enough?

[Refresh] This one here may be a problem. The kernel is programmed in different methods, where the file names are the same. I need to make sure that in each case only certain files are used. The easiest way to use the package here, so as not to spoil the namespace?

+5
source share
2 answers

MATLAB m , path. m (.. , ) MATLAB, MATLAB , .

addpath rmpath . , script. , addpath , , .

, packages.

EDIT: :

  • + .
  • , MATLAB.
  • packagename. , (import packagename.*).

, , . , (.. my_matlab_files/+mypkg/+nested/foo.m).

+5

OS X 10.10.3 Matlab r2015a.

~/electrochemistry/Matlab/

- . , Matlab ~/electrochemistry/Matlab/, , (.. .m , )

, ~/electrochemistry/Matlab/, .

0

All Articles