This is how I add a folder to the matlab path on command window:
if(~exist('varycolor'))
addpath(genpath('~/MatlabAddon'));
end
The if condition checks for the existence of the function 'varycolor'. If it does not exists, it loads the folder where this file is present.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment