From: Rory Lewis on
I've just downloaded eeglab, its in my C:\Users\rlewis\Documents\MATLAB directory. I fo to File>SetPath and selct the directory but when I want to save it permanently, not set the path each time I log in, it says I cannot, I need to save the "m" file. Can anybody help me please?

Thank you.

--Rory
From: Image Analyst on
Rory:
Put this in your startup.m file:

if(~isdeployed)
% Add the Work folder and all subfolders to the search path.
addpath(genpath('C:\Program Files\MATLAB\Work'));
cd 'C:\Program Files\MATLAB\work'
savepath;
end

Obviously change it from "Work" to whatever folder(s) you want to add.
 | 
Pages: 1
Prev: Parfor Thread Blocking
Next: PN sequence generator