PDC Startup Example

From VISTA LAB WIKI

(Difference between revisions)
Jump to: navigation, search
(Created page with "<nowiki> % startup on linux: Ochre % % Brian Wandell restoredefaultpath; addpath('/home/wandell/matlab/path'); isetDir = '/home/wandell/matlab/svn/iset-4.0'; rtbDir = '/usr/sh...")
Line 1: Line 1:
-
<nowiki>
+
&lt;nowiki&gt;<br>% startup on linux: Ochre<br>%<br>% Brian Wandell
-
% startup on linux: Ochre
+
-
%
+
-
% Brian Wandell
+
-
restoredefaultpath;
+
restoredefaultpath;<br>addpath('/home/wandell/matlab/path');
-
addpath('/home/wandell/matlab/path');
+
-
isetDir = '/home/wandell/matlab/svn/iset-4.0';
+
isetDir = '/home/wandell/matlab/svn/iset-4.0';<br>rtbDir = '/usr/share/RenderToolbox';<br>stbDir = '/usr/share/SimToolbox';<br>ptbDir = '/usr/share/psychtoolbox-3';
-
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
+
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);
-
        % 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
+
case 3<br> pdcSoftPath;<br> pdcProjectsPath;<br> isetPath;<br> <br> case 2<br> vistaPath;<br> addpath(genpath('/home/brian/matlab/SVN/vistaproj'));
-
        pdcSoftPath;
+
-
        pdcProjectsPath;
+
-
        isetPath;
+
-
       
+
-
    case 2
+
-
        vistaPath;
+
-
        addpath(genpath('/home/brian/matlab/SVN/vistaproj'));
+
-
    case 1
+
case 1<br> isetPath(isetDir);<br> chdir(isetDir);<br> <br> otherwise<br> disp('No ISET, or VISTA path set.')<br>end
-
        isetPath(isetDir);
+
-
        chdir(isetDir);
+
-
       
+
-
    otherwise
+
-
        disp('No ISET, or VISTA path set.')
+
-
end
+
-
% Finds the current path and, by default, removes directories starting with
+
% Finds the current path and, by default, removes directories starting with<br>% '.svn'<br>svnRemovePath;
-
% '.svn'
+
-
svnRemovePath;
+
-
clear isetDir  
+
clear isetDir <br>clear resp<br>&lt;/nowiki&gt;<br>
-
clear resp
+
-
</nowiki>
+

Revision as of 14:23, 10 August 2015

<nowiki>
% 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
</nowiki>

Personal tools