Skip to content

updating EEGLAB

updating EEGLAB #169

GitHub Actions / MATLAB Test R2021b failed Dec 16, 2023 in 1s

MATLAB Test R2021b ❌

Tests failed

❌ test-results/results_R2021b.xml

705 tests were completed in 2598s with 702 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
adminfunc_eeg_checkchanlocs_wrapperTest 1✅ 206ms
adminfunc_eeg_getdatact_wrapperTest 1✅ 225ms
adminfunc_eeg_global_wrapperTest 1✅ 8ms
adminfunc_eeg_helpadmin_wrapperTest 1✅ 71ms
adminfunc_eeg_helphelp_wrapperTest 1✅ 2s
adminfunc_eeg_helpmenu_wrapperTest 1✅ 5ms
adminfunc_eeg_helppop_wrapperTest 1✅ 5ms
adminfunc_eeg_helpsigproc_wrapperTest 1✅ 5ms
adminfunc_eeg_helpstudy_wrapperTest 1✅ 7ms
adminfunc_eeg_hist_wrapperTest 1✅ 6ms
adminfunc_eeg_options_wrapperTest 1✅ 3ms
adminfunc_eeg_optionsbackup_wrapperTest 1✅ 3ms
adminfunc_eeg_readoptions_wrapperTest 2✅ 30ms
adminfunc_eeg_retrieve_wrapperTest 5✅ 147ms
adminfunc_eeg_store_wrapperTest 8✅ 2s
adminfunc_eegh_wrapperTest 13✅ 23ms
adminfunc_eeglab_error_wrapperTest 1✅ 1ms
adminfunc_eeglab_execmenu_wrapperTest 1✅ 17s
adminfunc_eeglab_options_wrapperTest 1✅ 20ms
adminfunc_eegobj_wrapperTest 1✅ 1s
adminfunc_gethelpvar_wrapperTest 6✅ 62ms
adminfunc_getkeyval_wrapperTest 15✅ 209ms
adminfunc_gettext_wrapperTest 1✅ 2ms
adminfunc_is_sccn_wrapperTest 1✅ 90ms
adminfunc_iseeglabdeployed_wrapperTest 1✅ 4ms
adminfunc_mmo_wrapperTest 16✅ 55s
adminfunc_pop_delset_wrapperTest 5✅ 207ms
adminfunc_pop_editoptions_wrapperTest 1✅ 1ms
adminfunc_pop_rejmenu_wrapperTest 1✅ 1s
adminfunc_pop_stdwarn_wrapperTest 1✅ 1ms
adminfunc_vararg2str_wrapperTest 1✅ 26ms
binary_loadcnt_wrapperTest 1✅ 2s
binary_pop_biosig_wrapperTest 2✅ 3s
binary_pop_chancoresp_wrapperTest 9✅ 584ms
binary_pop_chanevent_wrapperTest 1✅ 3s
binary_pop_importegimat_wrapperTest 1✅ 167ms
binary_pop_importpres_wrapperTest 1✅ 744ms
binary_pop_loadbv_wrapperTest 1✅ 442ms
binary_pop_loadcnt_wrapperTest 1✅ 4s
binary_pop_read_erpss_wrapperTest 1✅ 1s
binary_pop_readegi_wrapperTest 1✅ 164ms
binary_pop_readsegegi_wrapperTest 1✅ 743ms
binary_pop_snapread_wrapperTest 1✅ 313ms
binary_readbdf_wrapperTest 1✅ 49ms
binary_readegi_wrapperTest 1✅ 24ms
binary_snapread_wrapperTest 1✅ 79ms
clean_rawdata_wrapperTest 6✅ 17s
eeglab_tests_wrapperTest 2✅ 95s
guifunc_errordlg2_wrapperTest 1✅ 1ms
guifunc_finputcheck_wrapperTest 8✅ 32ms
guifunc_inputdlg2_wrapperTest 5✅ 3ms
guifunc_inputgui_wrapperTest 10✅ 6ms
guifunc_listdlg2_wrapperTest 10✅ 6ms
guifunc_pophelp_wrapperTest 1✅ 18s
guifunc_supergui_wrapperTest 1✅ 12s
miscfunc_abspeak_wrapperTest 9✅ 25ms
miscfunc_averef_wrapperTest 4✅ 7ms
miscfunc_covary_wrapperTest 5✅ 13ms
miscfunc_datlim_wrapperTest 3✅ 6ms
miscfunc_eeg_ms2f_wrapperTest 4✅ 8ms
miscfunc_eeg_regepochs_wrapperTest 2✅ 336ms
miscfunc_eeg_time2prev_wrapperTest 1✅ 1ms
miscfunc_eegmovie_wrapperTest 2✅ 2ms
miscfunc_eegplotgold_wrapperTest 6✅ 504ms
miscfunc_eegplotsold_wrapperTest 3✅ 250ms
miscfunc_eucl_wrapperTest 1✅ 15ms
miscfunc_gabor2d_wrapperTest 4✅ 29ms
miscfunc_gauss_wrapperTest 1✅ 7ms
miscfunc_gauss2d_wrapperTest 2✅ 9ms
miscfunc_gauss3d_wrapperTest 1✅ 13ms
miscfunc_getallmenus_wrapperTest 1✅ 76ms
miscfunc_getipsph_wrapperTest 1✅ 11ms
miscfunc_gradmap_wrapperTest 3✅ 681ms
miscfunc_gradplot_wrapperTest 4✅ 466ms
miscfunc_headmovie_wrapperTest 3✅ 2s
miscfunc_help2html_wrapperTest 2✅ 2ms
miscfunc_helpforexe_wrapperTest 1✅ 254ms
miscfunc_hist2_wrapperTest 1✅ 159ms
miscfunc_hungarian_wrapperTest 8✅ 39ms
miscfunc_icademo_wrapperTest 1✅ 1ms
miscfunc_imagescloglog_wrapperTest 6✅ 352ms
miscfunc_imagesclogy_wrapperTest 6✅ 279ms
miscfunc_kmeans_st_wrapperTest 1✅ 665ms
miscfunc_laplac2d_wrapperTest 4✅ 11ms
miscfunc_loc_subsets_wrapperTest 1✅ 29s
miscfunc_make_timewarp_wrapperTest 1✅ 225ms
miscfunc_makehtml_output_wrapperTest 2✅ 86ms
miscfunc_makehtml_wrapperTest 1✅ 1ms
miscfunc_mapcorr_wrapperTest 1✅ 19s
miscfunc_matcorr_wrapperTest 8✅ 35ms
miscfunc_matperm_wrapperTest 1✅ 6ms
miscfunc_means_wrapperTest 1✅ 27ms
miscfunc_nan_std_wrapperTest 4✅ 9ms
miscfunc_numdim_wrapperTest 4✅ 9ms
miscfunc_pcexpand_wrapperTest 2✅ 6ms
miscfunc_pcsquash_wrapperTest 3✅ 14ms
miscfunc_perminv_wrapperTest 1✅ 5ms
miscfunc_promax_wrapperTest 5✅ 51ms
miscfunc_rmart_wrapperTest 1✅ 12ms
miscfunc_rmsave_wrapperTest 1✅ 10ms
miscfunc_runicalowmem_wrapperTest 1✅ 69s
miscfunc_runpca_wrapperTest 1✅ 8ms
miscfunc_runpca2_wrapperTest 1✅ 155ms
miscfunc_scanfold_wrapperTest 1✅ 2s
miscfunc_seemovie_wrapperTest 1✅ 1ms
miscfunc_setfont_wrapperTest 1✅ 119ms
miscfunc_shortread_wrapperTest 1✅ 88ms
miscfunc_show_events_wrapperTest 1✅ 1s
miscfunc_testica_wrapperTest 1✅ 971ms
miscfunc_textgui_wrapperTest 1✅ 105ms
miscfunc_uniqe_cell_string_wrapperTest 1✅ 4ms
miscfunc_uniquef_wrapperTest 1✅ 5ms
miscfunc_varimax_wrapperTest 1✅ 74ms
miscfunc_varsort_wrapperTest 1✅ 12s
miscfunc_vectdata_wrapperTest 1✅ 663ms
miscfunc_zica_wrapperTest 1✅ 15s
popfunc_eeg_addnewevents_wrapperTest 1✅ 1ms
popfunc_eeg_amplitudearea_wrapperTest 1✅ 63ms
popfunc_eeg_chaninds_wrapperTest 1✅ 80ms
popfunc_eeg_context_wrapperTest 1✅ 463ms
popfunc_eeg_decodechan_wrapperTest 1✅ 91ms
popfunc_eeg_eegrej_wrapperTest 2✅ 732ms
popfunc_eeg_emptyset_wrapperTest 1✅ 2ms
popfunc_eeg_eventhist_wrapperTest 1✅ 309ms
popfunc_eeg_eventtypes_wrapperTest 1✅ 91ms
popfunc_eeg_getepochevent_wrapperTest 5✅ 44ms
popfunc_eeg_getica_wrapperTest 1✅ 123ms
popfunc_eeg_insertbound_wrapperTest 1✅ 24ms
popfunc_eeg_interp_wrapperTest 2✅ 825ms
popfunc_eeg_lat2point_wrapperTest 6✅ 29ms
popfunc_eeg_matchchans_wrapperTest 2✅ 21ms
popfunc_eeg_mergechan_wrapperTest 1✅ 96ms
popfunc_eeg_mergelocs_wrapperTest 1✅ 102ms
popfunc_eeg_multieegplot_wrapperTest 3✅ 937ms
popfunc_eeg_point2lat_wrapperTest 6✅ 16ms
popfunc_eeg_rejsuperpose_wrapperTest 5✅ 24ms
popfunc_eeg_timeinterp_wrapperTest 1✅ 174ms
popfunc_eeg_urlatency_wrapperTest 2✅ 5ms
popfunc_getchanlist_wrapperTest 4✅ 11ms
popfunc_importevent_wrapperTest 2✅ 75ms
popfunc_pop_adjustevents_wrapperTest 2✅ 566ms
popfunc_pop_autorej_wrapperTest 1✅ 8s
popfunc_pop_chancenter_wrapperTest 4✅ 216ms
popfunc_pop_chanedit_wrapperTest 1✅ 85ms
popfunc_pop_chansel_wrapperTest 1✅ 1ms
popfunc_pop_comments_wrapperTest 3✅ 107ms
popfunc_pop_compareerps_wrapperTest 2✅ 2ms
popfunc_pop_comperp_wrapperTest 1✅ 12s
popfunc_pop_copyset_wrapperTest 2✅ 379ms
popfunc_pop_crossf_wrapperTest 2✅ 2s
popfunc_pop_delset_wrapperTest 1✅ 100ms
popfunc_pop_editeventfield_wrapperTest 17✅ 1s
popfunc_pop_editeventvals_wrapperTest 1✅ 122ms
popfunc_pop_editset_wrapperTest 1✅ 1ms
popfunc_pop_eegfilt_wrapperTest 1✅ 414ms
popfunc_pop_eegplot_wrapperTest 1✅ 852ms
popfunc_pop_eegthresh_wrapperTest 1✅ 6s
popfunc_pop_envtopo_wrapperTest 1✅ 5s
popfunc_pop_epoch_wrapperTest 2✅ 551ms
popfunc_pop_erpimage_wrapperTest 1✅ 10s
popfunc_pop_eventstat_wrapperTest 1✅ 10s
popfunc_pop_expica_wrapperTest 2✅ 561ms
popfunc_pop_export_wrapperTest 1✅ 15s
popfunc_pop_headplot_wrapperTest 1✅ 3s
popfunc_pop_importdata_wrapperTest 1✅ 1ms
popfunc_pop_importepoch_wrapperTest 1✅ 362ms
popfunc_pop_importevent_wrapperTest 1✅ 3s
popfunc_pop_interp_wrapperTest 1✅ 535ms
popfunc_pop_jointprob_wrapperTest 1✅ 3s
popfunc_pop_loadset_wrapperTest 1✅ 3s
popfunc_pop_mergeset_wrapperTest 1✅ 1s
popfunc_pop_newcrossf_wrapperTest 1✅ 2s
popfunc_pop_newset_wrapperTest 1✅ 1s
popfunc_pop_plotdata_wrapperTest 1✅ 13s
popfunc_pop_plottopo_wrapperTest 1✅ 1s
popfunc_pop_prop_wrapperTest 1✅ 8s
popfunc_pop_readlocs_wrapperTest 1✅ 111ms
popfunc_pop_rejchan_wrapperTest 1✅ 989ms
popfunc_pop_rejchanspec_wrapperTest 1✅ 19s
popfunc_pop_rejepoch_wrapperTest 1✅ 253ms
popfunc_pop_rejkurt_wrapperTest 1✅ 5s
popfunc_pop_rejspec_wrapperTest 1✅ 40s
popfunc_pop_rejtrend_wrapperTest 1✅ 2s
popfunc_pop_reref_wrapperTest 2✅ 110ms
popfunc_pop_resample_wrapperTest 3✅ 11s
popfunc_pop_rmbase_wrapperTest 1✅ 105ms
popfunc_pop_rmdat_wrapperTest 1✅ 3s
popfunc_pop_runica_wrapperTest 1✅ 4s
popfunc_pop_runscript_wrapperTest 1✅ 6s
popfunc_pop_saveh_wrapperTest 1✅ 824ms
popfunc_pop_saveset_wrapperTest 1✅ 3s
popfunc_pop_select_wrapperTest 1✅ 269ms
popfunc_pop_selectcomps_wrapperTest 1✅ 12s
popfunc_pop_selectevent_wrapperTest 2✅ 878ms
popfunc_pop_signalstat_wrapperTest 1✅ 4s
popfunc_pop_spectopo_wrapperTest 1✅ 34s
popfunc_pop_subcomp_wrapperTest 1✅ 95ms
popfunc_pop_timef_wrapperTest 1✅ 2s
popfunc_pop_timtopo_wrapperTest 1✅ 532ms
popfunc_pop_topoplot_wrapperTest 1✅ 6s
popfunc_pop_writelocs_wrapperTest 1✅ 127ms
sigprocfunc_angtimewarp_wrapperTest 3✅ 14ms
sigprocfunc_axcopy_wrapperTest 3✅ 325ms
sigprocfunc_blockave_wrapperTest 1✅ 3ms
sigprocfunc_cart2topo_wrapperTest 2✅ 25ms
sigprocfunc_cbar_wrapperTest 5✅ 1s
sigprocfunc_celltomat_wrapperTest 2✅ 8ms
sigprocfunc_chancenter_wrapperTest 5✅ 62ms
sigprocfunc_concatdata_wrapperTest 1✅ 9ms
sigprocfunc_convertlocs_wrapperTest 1✅ 10ms
sigprocfunc_copyaxis_wrapperTest 1✅ 265ms
sigprocfunc_eegfilt_wrapperTest 1✅ 141ms
sigprocfunc_eegplot_wrapperTest 5✅ 1s
sigprocfunc_eegplot2event_wrapperTest 6✅ 23ms
sigprocfunc_eegplot2trial_wrapperTest 5✅ 24ms
sigprocfunc_eegrej_wrapperTest 4✅ 365ms
sigprocfunc_eegthresh_wrapperTest 7✅ 31ms
sigprocfunc_entropy_rej_wrapperTest 8✅ 34ms
sigprocfunc_env_wrapperTest 2✅ 14ms
sigprocfunc_envtopo_wrapperTest 1✅ 2s
sigprocfunc_epoch_wrapperTest 5✅ 95ms
sigprocfunc_erpimage_wrapperTest 8✅ 698ms
sigprocfunc_eventalign_wrapperTest 3✅ 7ms
sigprocfunc_eventlock_wrapperTest 2✅ 2ms
sigprocfunc_eyelike_wrapperTest 5✅ 17ms
sigprocfunc_fastif_wrapperTest 4✅ 6ms
sigprocfunc_fdr_wrapperTest 1✅ 41ms
sigprocfunc_floatread_wrapperTest 5✅ 16ms
sigprocfunc_floatwrite_wrapperTest 2✅ 388ms
sigprocfunc_forcelocs_wrapperTest 2✅ 25ms
sigprocfunc_headplot_wrapperTest 5✅ 6s
sigprocfunc_icadefs_wrapperTest 1✅ 9ms
sigprocfunc_jointprob_wrapperTest 8✅ 21ms
sigprocfunc_kmeanscluster_wrapperTest 1✅ 14ms
sigprocfunc_kurt_wrapperTest 4✅ 20ms
sigprocfunc_loadeeg_wrapperTest 1✅ 1ms
sigprocfunc_loadtxt_wrapperTest 8✅ 58ms
sigprocfunc_matsel_wrapperTest 2✅ 8ms
sigprocfunc_mattocell_wrapperTest 2✅ 4ms
sigprocfunc_movav_wrapperTest 10✅ 40ms
sigprocfunc_nan_mean_wrapperTest 4✅ 7ms
sigprocfunc_newtimef_wrapperTest 2✅ 887ms
sigprocfunc_parsetxt_wrapperTest 3✅ 9ms
sigprocfunc_plotcurve_wrapperTest 1✅ 1s
sigprocfunc_posact_wrapperTest 3✅ 14ms
sigprocfunc_quantile_wrapperTest 5✅ 31ms
sigprocfunc_readeetraklocs_wrapperTest 2✅ 2ms
sigprocfunc_readegilocs_wrapperTest 1✅ 523ms
sigprocfunc_readelp_wrapperTest 1✅ 11ms
sigprocfunc_readlocs_wrapperTest 2✅ 54ms
sigprocfunc_readneurodat_wrapperTest 1✅ 19ms
sigprocfunc_readtxtfile_wrapperTest 1✅ 7ms
sigprocfunc_realproba_wrapperTest 3✅ 5ms
sigprocfunc_rejkurt_wrapperTest 1✅ 1s
sigprocfunc_rejtrend_wrapperTest 1✅ 931ms
sigprocfunc_reref_wrapperTest 1✅ 243ms
sigprocfunc_rmbase_wrapperTest 1✅ 288ms
sigprocfunc_runica_ml2_wrapperTest 1✅ 3s
sigprocfunc_runica_mlb_wrapperTest 1✅ 14s
sigprocfunc_runica_wrapperTest 12✅ 634ms
sigprocfunc_sbplot_wrapperTest 1✅ 177ms
sigprocfunc_shuffle_wrapperTest 1✅ 14ms
sigprocfunc_slider_wrapperTest 1✅ 321ms
sigprocfunc_timtopo_wrapperTest 1✅ 17s
sigprocfunc_topoplot_wrapperTest 1✅ 153ms
statcondTest 24✅ 1s
statistics_statcond_wrapperTest 1✅ 324ms
statistics_statcondfieldtrip_wrapperTest 1✅ 10ms
studyfunc_pop_clust_wrapperTest 1✅ 3s
studyfunc_pop_dipparams_wrapperTest 1✅ 2s
studyfunc_pop_erpimparams_wrapperTest 1✅ 2s
studyfunc_pop_erpparams_wrapperTest 1✅ 2s
studyfunc_pop_erspparams_wrapperTest 1✅ 2s
studyfunc_pop_specparams_wrapperTest 1✅ 2s
studyfunc_pop_statparams_wrapperTest 1✅ 2s
studyfunc_std_dipplot_wrapperTest 1✅ 2s
studyfunc_std_editset_wrapperTest 1✅ 6s
studyfunc_std_erpplot_wrapperTest 2✅ 1❌ 91s
studyfunc_std_erspplot_wrapperTest 5✅ 63s
studyfunc_std_makedesign_wrapperTest 1✅ 2s
studyfunc_std_preclust_wrapperTest 1✅ 25s
studyfunc_std_precomp_wrapperTest 1✅ 76s
studyfunc_std_selectdesign_wrapperTest 1✅ 852ms
studyfunc_std_specplot_wrapperTest 2✅ 2❌ 40s
studyfunc_std_topoplot_wrapperTest 1✅ 3s
tutorial_wrapperTest 9✅ 753s
tutorial2_wrapperTest 2✅ 798s

❌ studyfunc_std_erpplot_wrapperTest

❌ test_test_std_erpplot
	Error occurred in studyfunc_std_erpplot_wrapperTest/test_test_std_erpplot and it did not run to completion.
✅ test_test_stderpplot2
✅ test_test_stderpplot3

❌ studyfunc_std_specplot_wrapperTest

❌ test_test_std_specplot
	Error occurred in studyfunc_std_specplot_wrapperTest/test_test_std_specplot and it did not run to completion.
❌ test_test_std_specplot2
	Error occurred in studyfunc_std_specplot_wrapperTest/test_test_std_specplot2 and it did not run to completion.
✅ test_test_stdspecplot3
✅ test_test_stdspecplot4

Annotations

Check failure on line 0 in test-results/results_R2021b.xml

See this annotation in the file changed.

@github-actions github-actions / MATLAB Test R2021b

studyfunc_std_erpplot_wrapperTest ► test_test_std_erpplot

Failed test found in:
  test-results/results_R2021b.xml
Error:
  Error occurred in studyfunc_std_erpplot_wrapperTest/test_test_std_erpplot and it did not run to completion.
Raw output
Error occurred in studyfunc_std_erpplot_wrapperTest/test_test_std_erpplot and it did not run to completion.
    ---------
    Error ID:
    ---------
    'MATLAB:badsubscript'
    --------------
    Error Details:
    --------------
    Index exceeds the number of array elements. Index must not exceed 1.
    
    Error in metaplottopo (line 296)
                tmp = [ tmp(1:g.datapos(2)-1) { data{2}(c,:,:,:,:) } tmp(g.datapos(2):end) ];
    
    Error in std_plotcurve (line 513)
                                  metaplottopo(pgroupplot{c}', 'chanlocs', opt.chanlocs, 'plotfunc', 'plotcurve', ...
    
    Error in std_erpplot (line 359)
            std_plotcurve(alltimes, tmperpdata, 'groupstats', pgroup, 'legend', alllegends, 'condstats', pcond, 'interstats', pinter, ...
    
    Error in test_std_erpplot (line 38)
                                        STUDY = std_erpplot(STUDY, ALLEEG, 'channels', channels{chans}, 'plotsubjects', plotsubjects{ps}, 'condstats', stats{s1}, 'groupstats', stats{s2}, 'plotgroups', conds{c1}, 'plotconditions', conds{c2}, 'threshold', NaN);
    
    Error in studyfunc_std_erpplot_wrapperTest>test_test_std_erpplot (line 6)
    test_std_erpplot

Check failure on line 0 in test-results/results_R2021b.xml

See this annotation in the file changed.

@github-actions github-actions / MATLAB Test R2021b

studyfunc_std_specplot_wrapperTest ► test_test_std_specplot

Failed test found in:
  test-results/results_R2021b.xml
Error:
  Error occurred in studyfunc_std_specplot_wrapperTest/test_test_std_specplot and it did not run to completion.
Raw output
Error occurred in studyfunc_std_specplot_wrapperTest/test_test_std_specplot and it did not run to completion.
    ---------
    Error ID:
    ---------
    'MATLAB:badsubscript'
    --------------
    Error Details:
    --------------
    Index exceeds the number of array elements. Index must not exceed 1.
    
    Error in metaplottopo (line 296)
                tmp = [ tmp(1:g.datapos(2)-1) { data{2}(c,:,:,:,:) } tmp(g.datapos(2):end) ];
    
    Error in std_plotcurve (line 543)
                        metaplottopo(pcondplot{g}', 'chanlocs', opt.chanlocs, 'plotfunc', 'plotcurve', ...
    
    Error in std_erpplot (line 359)
            std_plotcurve(alltimes, tmperpdata, 'groupstats', pgroup, 'legend', alllegends, 'condstats', pcond, 'interstats', pinter, ...
    
    Error in std_specplot (line 108)
    [STUDY, specdata, allfreqs, pgroup, pcond, pinter] = std_erpplot(STUDY, ALLEEG, 'datatype', 'spec', 'unitx', 'Hz', varargin{:});
    
    Error in test_std_specplot (line 25)
    STUDY = std_specplot(STUDY, ALLEEG, 'channels', { tmpchanlocs.labels }, 'plotconditions', 'together', 'condstats', 'on'); if closefig, close; end
    
    Error in studyfunc_std_specplot_wrapperTest>test_test_std_specplot (line 6)
    test_std_specplot

Check failure on line 0 in test-results/results_R2021b.xml

See this annotation in the file changed.

@github-actions github-actions / MATLAB Test R2021b

studyfunc_std_specplot_wrapperTest ► test_test_std_specplot2

Failed test found in:
  test-results/results_R2021b.xml
Error:
  Error occurred in studyfunc_std_specplot_wrapperTest/test_test_std_specplot2 and it did not run to completion.
Raw output
Error occurred in studyfunc_std_specplot_wrapperTest/test_test_std_specplot2 and it did not run to completion.
    ---------
    Error ID:
    ---------
    'MATLAB:badsubscript'
    --------------
    Error Details:
    --------------
    Index exceeds the number of array elements. Index must not exceed 1.
    
    Error in metaplottopo (line 296)
                tmp = [ tmp(1:g.datapos(2)-1) { data{2}(c,:,:,:,:) } tmp(g.datapos(2):end) ];
    
    Error in std_plotcurve (line 513)
                                  metaplottopo(pgroupplot{c}', 'chanlocs', opt.chanlocs, 'plotfunc', 'plotcurve', ...
    
    Error in std_erpplot (line 359)
            std_plotcurve(alltimes, tmperpdata, 'groupstats', pgroup, 'legend', alllegends, 'condstats', pcond, 'interstats', pinter, ...
    
    Error in std_specplot (line 108)
    [STUDY, specdata, allfreqs, pgroup, pcond, pinter] = std_erpplot(STUDY, ALLEEG, 'datatype', 'spec', 'unitx', 'Hz', varargin{:});
    
    Error in test_std_specplot2 (line 29)
                                STUDY = std_specplot(STUDY, ALLEEG, 'channels', channels{chans}, 'plotsubjects', plotsubjects{ps}, 'condstats', stats{s1}, 'groupstats', stats{s2}, 'plotgroups', conds{c1}, 'plotconditions', conds{c2}, 'threshold', NaN);
    
    Error in studyfunc_std_specplot_wrapperTest>test_test_std_specplot2 (line 9)
    test_std_specplot2