matlabuser-interfacepluginseeglab

matlab - can I view functions run by plugins?


I am using matlab R2012b, with the eeglab plugin. This is a plugin with a GUI, while this is very helpful I want to be able to see what functions the plugin is running when I use the GUI is this possible?


Solution

  • If you enter the command EEG.history into the command window after your session with EEGLAB it will print out a list of the commands called for the session.

    example ...

    EEG.history

    ans =

    EEG = pop_fileio('D:\work\Matlab libraries\training_course_materials\Eeglab_data.set'); EEG.setname='temp_file'; EEG = eeg_checkset( EEG );

    If you then select a function of interest, e.g. highlight pop_fileio above and then right click you can select 'Open selection' option from the popup menu and the file pop_fileio.m' will open in a new tab in the MATLAB editor for you to look at it.

    It's worth noting that when you run EEGLAB as a GUI that a lot of subsequent function calls are made with default parameter setting however if you call them directly from your own code you can then change these default settings.