Dear Brian, Try declaring EEG as global at the beginnung of the function (global EEG) or use assignin('base', 'EEG', EEG). It should help. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140516/fc0ce2ee/attachment.html>