Skip to content

pop_VisEd expects incorrect number of inputs #13

@arnodelorme

Description

@arnodelorme

Copied from bug 1069
https://sccn.ucsd.edu/bugzilla/show_bug.cgi?id=1069

I believe this has been fixed but better double check

Hi Jeff,

Thanks for looking into this.

I don't understand what you mean in your comment.

The VisEd function expects four input variables, the second variable being "DataType". This variable determines the type of data to be displayed in the eegplot figure window (1 = scalp data, 2 = ica activation).

If four input variables are passed to pop_VisEd an error occurs because only three inputs are declared on line 36 of pop_VisEd. The missing input variable is "DataType".

In its current state there is no way to call pop_VisEd without initiating the GUI.

James

[reply] [−]Comment 1Jeff Schmitz 2011-10-25 12:26:12 PDT

The variable DataType is a variable used for a return value, not an input value.

[reply] [−]DescriptionJames Desjardins 2011-06-07 06:36:25 PDT

Using EEGLAB v10.1.2.0b (svn 9279) under Matlab 7.12.0.635 (2011a) 64-bit (glnxa64) and Linux 64bit (Ubuntu
10.04LTS)...

When calling the pop_VisEd function from the Matlab command line I get the
following error:

pop_VisEd(EEG,1,'[1:10]',[])
??? Error using ==> pop_VisEd
Too many input arguments.

This is fixed by changing line 36 of pop_VisEd.m from:

function [EEG,com]=pop_VisEd(EEG, ChanIndex, EventType)

to:

function [EEG,com]=pop_VisEd(EEG, DataType, ChanIndex, EventType)

... and line 78 from:

if nargin < 3

to:

if nargin < 4

James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions