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
Jesse Heckman
pbtoolbox
Commits
e8ae5c46
Commit
e8ae5c46
authored
Nov 05, 2018
by
Jesse Heckman
Browse files
updated minor fixes
parent
b4bfc1ab
Changes
6
Hide whitespace changes
Inline
Side-by-side
setups/vestibular chair/vPrime/core/experiment/block/pb_vSignalVC.m
View file @
e8ae5c46
...
...
@@ -32,7 +32,7 @@ function [Dat,profile,dur] = pb_vSignalVC(handles)
Dat
.
v
.
amplitude
=
signal
(
1
)
.
amplitude
;
Dat
.
h
.
amplitude
=
signal
(
2
)
.
amplitude
;
dur
=
max
([
signal
(
1
)
.
duration
signal
(
2
)
.
duration
])
+
10
;
% add 10 extra seconds for delay of the system
%
dur = max([signal(1).duration signal(2).duration])+10; % add 10 extra seconds for delay of the system
%% FEEDBACK GUI
updateBlock
(
handles
,
signal
);
...
...
setups/vestibular chair/vPrime/core/pb_vRunExp.m
View file @
e8ae5c46
...
...
@@ -119,9 +119,9 @@ function updateTrial(handles)
% Updates the trial information to the GUI
tn
=
handles
.
cfg
.
trialnumber
;
handles
.
figure1
.
Name
=
[
'vPrime - '
num2str
(
tn
(
2
))
'/'
num2str
(
handles
.
cfg
.
Trials
)
' Trials'
];
% counting title
handles
.
figure1
.
Name
=
[
'vPrime - '
num2str
(
tn
(
2
))
'/'
num2str
(
handles
.
cfg
.
Trials
)
' Trials'
];
% counting title
str
=
num2str
(
tn
(
1
),
'%03d'
);
% blocktrial
str
=
num2str
(
tn
(
1
),
'%03d'
);
% blocktrial
set
(
handles
.
Tn
,
'string'
,
str
);
end
...
...
utilities/fileio/backup/pb_makelocal.m
View file @
e8ae5c46
...
...
@@ -11,7 +11,7 @@ function pb_makelocal(varargin)
local
=
pb_keyval
(
'destination'
,
varargin
,[
pb_datapath
filesep
user
]);
srv
=
pb_keyval
(
'server'
,
varargin
,
'mbaudit5'
);
srv
=
[
'~/
Volu
me
s
/'
srv
];
srv
=
[
'~/
sharena
me/'
];
if
~
exist
(
srv
,
'dir'
)
disp
(
'Server cannot be found. Please first mount server (pb_mountserver).'
);
...
...
utilities/fileio/backup/pb_mountserver.m
View file @
e8ae5c46
...
...
@@ -9,7 +9,7 @@ function pb_mountserver(varargin)
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
srv
=
pb_keyval
(
'server'
,
varargin
,
'mbaudit5'
);
cin
=
[
'mount -t smbfs //'
getcredentials
(
srv
)
'@'
srv
'-srv.science.ru.nl/'
srv
' ~/sharename/'
];
cin
=
[
'mount -t smbfs //'
getcredentials
(
srv
)
'@'
srv
'-srv.science.ru.nl/'
srv
'
/
~/sharename/'
];
[
s
,
cout
]
=
system
(
cin
);
if
s
>
0
&&
s
~=
64
;
disp
(
cout
);
end
...
...
utilities/graphics/desgin/pb_defsubplot.m
View file @
e8ae5c46
...
...
@@ -18,6 +18,7 @@ function [n,p] = pb_defsubplot(fig)
for
i
=
1
:
n
p
(
i
)
=
length
(
findobj
(
h
(
i
),
'Type'
,
'Line'
))
+
...
length
(
findobj
(
h
(
i
),
'Type'
,
'FunctionLine'
))
+
...
length
(
findobj
(
h
(
i
),
'Type'
,
'Bar'
))
+
...
length
(
findobj
(
h
(
i
),
'Type'
,
'Area'
))
+
...
length
(
findobj
(
h
(
i
),
'Type'
,
'ErrorBar'
))
+
...
...
...
utilities/graphics/desgin/pb_nicegraph.m
View file @
e8ae5c46
...
...
@@ -60,6 +60,17 @@ function pb_nicegraph(varargin)
'Color'
,
col
(
j
,:)
,
...
'LineWidth'
,
linewidth
);
end
% FUNCTIONLINE:
%
% Use as 'primary' data
h_fline
=
pb_fobj
(
ax
(
i
),
'Type'
,
'FunctionLine'
);
for
iFline
=
1
:
length
(
h_fline
)
set
(
h_fline
(
length
(
h_fline
)
+
1
-
iFline
),
...
'Color'
,
col
(
iFline
,:)
,
...
'LineWidth'
,
linewidth
);
end
% ERRORBAR:
%
...
...
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