Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jesse Heckman
pbtoolbox
Commits
204e74b9
Commit
204e74b9
authored
Oct 12, 2018
by
Jesse Heckman
Browse files
check
parent
8d9ceeb1
Changes
4
Hide whitespace changes
Inline
Side-by-side
setups/vestibular chair/vPrime/core/experiment/block/pb_vEndExp.m
View file @
204e74b9
...
...
@@ -47,14 +47,17 @@ function pb_vEndExp(cfg)
n
=
5
;
s
=
ledpattern
(
n
);
seq1
=
[
0
:
2
:
9
fliplr
(
16
:
2
:
24
)];
seq2
=
[
1
:
2
:
9
fliplr
(
17
:
2
:
24
)];
ir
=
50
;
ig
=
ir
;
for
i
=
1
:
n
if
mod
(
i
,
2
)
==
0
s
(
i
)
.
set
(
0
:
2
:
19
,
'r'
);
s
(
i
)
.
set
(
seq1
,
'r'
);
else
s
(
i
)
.
set
(
1
:
2
:
19
,
'g'
);
s
(
i
)
.
set
(
seq2
,
'g'
);
end
s
(
i
)
.
intensity
(
'r'
,
ir
);
s
(
i
)
.
intensity
(
'g'
,
ig
);
...
...
setups/vestibular chair/vPrime/core/experiment/
block/
pb_vRunVC.m
→
setups/vestibular chair/vPrime/core/experiment/pb_vRunVC.m
View file @
204e74b9
File moved
setups/vestibular chair/vPrime/lookup/~$vPrime Measurement.xlsx
0 → 100644
View file @
204e74b9
File added
utilities/fileio/pb_lookup.m
View file @
204e74b9
function
array
=
pb_lookup
(
array
,
varargin
)
function
[
ID
,
az
,
el
]
=
pb_lookup
(
array
,
varargin
)
% PB_LOOKUP(array,varargin)
%
% PB_LOOKUP() converts array using a lookup table. For instance, when
...
...
@@ -9,7 +9,8 @@ function array = pb_lookup(array, varargin)
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
fn
=
pb_keyval
(
'fn'
,
varargin
,[]);
[
~
,
sheets
]
=
xlsfinfo
(
fn
);
VC
=
[
pb_userpath
'setups/vestibular chair/vPrime/lookup/vPrime Measurement.xlsx'
];
fn
=
pb_keyval
(
'fn'
,
varargin
,
VC
);
[
~
,
sheets
]
=
xlsfinfo
(
fn
);
sheet
=
pb_keyval
(
'sheet'
,
varargin
,
sheets
{
end
});
if
nargin
==
0
;
return
;
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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