Mercurial > hg > ishara
view general/general.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | db7f4afd27c5 |
children |
line wrap: on
line source
% general - Add subdirectories of general to path % % general :: cells { string } => void. % % Use general('all') or % >> general all % To add all subdirs to path. % % Available subdirectories are: % algo - Algorithms and APIs % arrutils - General array manipulations % cellutils - Cell manipulations % fileutils - File handling % funutils - Functional programming % numerical - Numerical analysis (inc scalar, vector, matrix) % discretise - Discretisation and quantisation tools function general(dirs) if nargin<1, disp('Type >> general all to add all subdirectories to matlab path'); return; end if strcmp(dirs,'all') dirs={'algo','arrutils','cellutils','fileutils','funutils','discretise', ... 'numerical','numerical/scalar','numerical/array','numerical/matrix'}; end thisfile=which('general'); seps=strfind(thisfile,filesep); thisdir=thisfile(1:seps(end)); for i=1:length(dirs) addpath([thisdir,dirs{i}]); end end