PDC Startup Example

From VISTA LAB WIKI

(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions not shown)
Line 1: Line 1:
-
&lt;nowiki&gt;<br>% startup on linux: Ochre<br>%<br>% Brian Wandell
+
<pre>
 +
% startup on linux: Ochre
 +
%
 +
% Brian Wandell
-
restoredefaultpath;<br>addpath('/home/wandell/matlab/path');
+
restoredefaultpath;
 +
addpath('/home/wandell/matlab/path');
-
isetDir = '/home/wandell/matlab/svn/iset-4.0';<br>rtbDir = '/usr/share/RenderToolbox';<br>stbDir = '/usr/share/SimToolbox';<br>ptbDir = '/usr/share/psychtoolbox-3';
+
isetDir = '/home/wandell/matlab/svn/iset-4.0';
 +
rtbDir = '/usr/share/RenderToolbox';
 +
stbDir = '/usr/share/SimToolbox';
 +
ptbDir = '/usr/share/psychtoolbox-3';
resp = input('Enter: 1 (ISET-4.0) or 2 (VISTA) or 3 (PDC) 4 (ISET and RenderToolbox) 5 (NONE):');
resp = input('Enter: 1 (ISET-4.0) or 2 (VISTA) or 3 (PDC) 4 (ISET and RenderToolbox) 5 (NONE):');
-
switch resp  
+
switch resp
-
case 4<br> % Sets up ISET, RenderToolbox, SimToolbox, PsychToolbox and removes<br> % SVN directories from the path. <br> isetPath(isetDir);<br> addpath(genpath(rtbDir));<br> addpath(genpath(stbDir));<br> addpath(genpath(ptbDir));<br> path(RemoveSVNPaths);
+
case 4
 +
% Sets up ISET, RenderToolbox, SimToolbox, PsychToolbox and removes
 +
% SVN directories from the path.
 +
isetPath(isetDir);
 +
addpath(genpath(rtbDir));
 +
addpath(genpath(stbDir));
 +
addpath(genpath(ptbDir));
 +
path(RemoveSVNPaths);
-
case 3<br> pdcSoftPath;<br> pdcProjectsPath;<br> isetPath;<br> <br> case 2<br> vistaPath;<br> addpath(genpath('/home/brian/matlab/SVN/vistaproj'));
+
case 3
 +
pdcSoftPath;
 +
pdcProjectsPath;
 +
isetPath;
-
case 1<br> isetPath(isetDir);<br> chdir(isetDir);<br> <br> otherwise<br> disp('No ISET, or VISTA path set.')<br>end
+
case 2
 +
vistaPath;
 +
addpath(genpath('/home/brian/matlab/SVN/vistaproj'));
-
% Finds the current path and, by default, removes directories starting with<br>% '.svn'<br>svnRemovePath;
+
case 1
 +
isetPath(isetDir);
 +
chdir(isetDir);
-
clear isetDir <br>clear resp<br>&lt;/nowiki&gt;<br>
+
otherwise
 +
disp('No ISET, or VISTA path set.')
 +
end
 +
 
 +
% Finds the current path and, by default, removes directories starting with
 +
% '.svn'
 +
svnRemovePath;
 +
 
 +
clear isetDir
 +
clear resp
 +
 
 +
</pre>

Latest revision as of 14:30, 10 August 2015

% startup on linux: Ochre
%
% Brian Wandell

restoredefaultpath;
addpath('/home/wandell/matlab/path');

isetDir = '/home/wandell/matlab/svn/iset-4.0';
rtbDir = '/usr/share/RenderToolbox';
stbDir = '/usr/share/SimToolbox';
ptbDir = '/usr/share/psychtoolbox-3';

resp = input('Enter: 1 (ISET-4.0) or 2 (VISTA) or 3 (PDC) 4 (ISET and RenderToolbox) 5 (NONE):');

switch resp

case 4
% Sets up ISET, RenderToolbox, SimToolbox, PsychToolbox and removes
% SVN directories from the path.
isetPath(isetDir);
addpath(genpath(rtbDir));
addpath(genpath(stbDir));
addpath(genpath(ptbDir));
path(RemoveSVNPaths);

case 3
pdcSoftPath;
pdcProjectsPath;
isetPath;

case 2
vistaPath;
addpath(genpath('/home/brian/matlab/SVN/vistaproj'));

case 1
isetPath(isetDir);
chdir(isetDir);

otherwise
disp('No ISET, or VISTA path set.')
end

% Finds the current path and, by default, removes directories starting with
% '.svn'
svnRemovePath;

clear isetDir
clear resp

Personal tools