23 lines
533 B
Matlab
23 lines
533 B
Matlab
function[] = set_plot_trial_edit(e)
|
|
|
|
plotwindow = e.handle;
|
|
|
|
subj_pop = findobj('Tag', 'subj_pop');
|
|
sess_pop = findobj('Tag', 'sess_pop');
|
|
trial_slider = findobj('Tag', 'trial_slider');
|
|
trial_edit = findobj('Tag', 'trial_edit');
|
|
|
|
trial=get(trial_edit, 'Value');
|
|
|
|
min_trial = get(trial_edit, 'Min');
|
|
max_trial = get(trial_edit, 'Max');
|
|
|
|
if ((trial >= min_trial) && (trial <= max_trial))
|
|
set(trial_slider, 'Value', trial);
|
|
else
|
|
display('Trial id does not exist');
|
|
end
|
|
|
|
|
|
plot(e.subjects(subj).sessions(sess).trials(trial));
|