Permalink
Cannot retrieve contributors at this time
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?
olfStim/olfStimSetPath.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (22 sloc)
1.12 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |