Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marc Posthuma
Bachelor Stage
Commits
bad69d7f
Commit
bad69d7f
authored
May 31, 2021
by
mposthuma
Browse files
Added some info for use at home
parent
88641c25
Changes
1
Hide whitespace changes
Inline
Side-by-side
experiment_file_main.m
View file @
bad69d7f
...
@@ -6,19 +6,26 @@ function pb_vGenExp_VisFlash(varargin)
...
@@ -6,19 +6,26 @@ function pb_vGenExp_VisFlash(varargin)
disp
(
' ...'
)
disp
(
' ...'
)
cfn
=
0
;
cfn
=
0
;
%General Values
%% Directory of EXP files
%@UNI
%U:\Documents\BIOLOGIE\STAGE\MATLAB\EXP-files\MainExp
%@Home
%C:\Users\marc_\OneDrive\Documents\Studie\STAGE\MATLAB Code\EXP-files\MainExp
%% GV struct
%General Values
GV
.
showexp
=
pb_keyval
(
'showexp'
,
varargin
,
true
);
GV
.
showexp
=
pb_keyval
(
'showexp'
,
varargin
,
true
);
GV
.
expfile
=
pb_keyval
(
'fname'
,
varargin
,
'MainExp'
);
GV
.
expfile
=
pb_keyval
(
'fname'
,
varargin
,
'MainExp'
);
GV
.
datdir
=
pb_keyval
(
'datdir'
,
varargin
,
'
U:
\Documents\
BIOLOGIE
\STAGE\MATLAB\EXP-files\MainExp'
);
GV
.
datdir
=
pb_keyval
(
'datdir'
,
varargin
,
'
C:\Users\marc_\OneDrive
\Documents\
Studie
\STAGE\MATLAB
Code
\EXP-files\MainExp'
);
GV
.
cdir
=
pb_keyval
(
'cdir'
,
varargin
,
userpath
);
GV
.
cdir
=
pb_keyval
(
'cdir'
,
varargin
,
userpath
);
GV
.
ITI
=
pb_keyval
(
'ITI'
,
varargin
,[
0
0
]);
GV
.
ITI
=
pb_keyval
(
'ITI'
,
varargin
,[
0
0
]);
GV
.
lab
=
pb_keyval
(
'lab'
,
varargin
,
5
);
GV
.
lab
=
pb_keyval
(
'lab'
,
varargin
,
5
);
GV
.
stim
=
pb_keyval
(
'stim'
,
varargin
,
2
);
GV
.
stim
=
pb_keyval
(
'stim'
,
varargin
,
2
);
expfile
=
'ExpFile'
;
expfile
=
'ExpFile'
;
datdir
=
'
U:
\Documents\
BIOLOGIE
\STAGE\MATLAB\EXP-files\MainExp'
;
datdir
=
'
C:\Users\marc_\OneDrive
\Documents\
Studie
\STAGE\MATLAB
Code
\EXP-files\MainExp'
;
cd
'
U:
\Documents\
BIOLOGIE
\STAGE\MATLAB\EXP-files\MainExp'
cd
'
C:\Users\marc_\OneDrive
\Documents\
Studie
\STAGE\MATLAB
Code
\EXP-files\MainExp'
%% Desired azimuth and elevation
%% Desired azimuth and elevation
% Define hemisphere
% Define hemisphere
...
@@ -132,8 +139,8 @@ function writeexp(expfile,datdir,theta,phi,int,dur,block,fixled,GV)
...
@@ -132,8 +139,8 @@ function writeexp(expfile,datdir,theta,phi,int,dur,block,fixled,GV)
expfile
=
fcheckext
(
expfile
,
'.exp'
);
% check whether the extension exp is included
expfile
=
fcheckext
(
expfile
,
'.exp'
);
% check whether the extension exp is included
fid
=
fopen
(
expfile
,
'wt+'
);
% this is the way to write date to a new file
fid
=
fopen
(
expfile
,
'wt+'
);
% this is the way to write date to a new file
nblocks
=
1
;
nblocks
=
1
;
ntrials
=
30
;
ntrials
=
30
;
trialsz
=
numel
(
theta
);
% number of trials
trialsz
=
numel
(
theta
);
% number of trials
tdurexp
=
2.1
*
trialsz
+
(
sum
(
dur
)/
1000
);
tdurexp
=
2.1
*
trialsz
+
(
sum
(
dur
)/
1000
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment