Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
function olfStimSetPath
% olfStimSetPath()
% This function adds all folders necessary for running olfStim to the
% Matlab path. Users only have to add the the top folder to their matlab
% path.
%
% lorenzpammer October 2012
%% Adding the necessary folders to the Matlab path
callingFunctionName = 'initOlfStim.m'; % Define the name of the initalizing function in the top level folder
olfStimTopDirectory = which(callingFunctionName);
olfStimTopDirectory(length(olfStimTopDirectory)-length(callingFunctionName):length(olfStimTopDirectory))=[];
addpath([olfStimTopDirectory filesep 'olfactometerUtilities' filesep 'osq'],...
[olfStimTopDirectory, filesep 'olfactometerUtilities' filesep 'osq' filesep 'ioCodes'],...
[olfStimTopDirectory filesep 'odorLibrary'],...
[olfStimTopDirectory filesep 'odorSelection'],...
[olfStimTopDirectory filesep 'olfactometerUtilities'],...
[olfStimTopDirectory filesep 'protocols'],...
[olfStimTopDirectory filesep 'utilityFunctions'],...
[olfStimTopDirectory filesep 'configuration'],...
[olfStimTopDirectory filesep 'scripting']);
a=1;
end