POP_COMMENTS Edit comments


Usage: >> newcomments = pop_comments( oldcomments);
>> newcomments = pop_comments( oldcomments, title, newcomments, concat);

Inputs:
oldcomments   
old comments (string or cell array of strings)
title   
optional window title (string)
newcomments   
new comments (string or cell array of strings) to assign (during commandline calls only)
concat   
[0|1] 1 concatenate the newcomments to the old one. Default is 0.

Outputs:
newcomments   
new comments, string

Note: if new comments are given as input, there are simply
converted and returned by the function; otherwise a
window pops up.
Example
EEG.comments   
pop_comments( { 'This is the first line.' ' ' ... 'This is the third line.' }, 'Editing');
EEG.comments   
pop_comments(EEG.comments,'','This is the fourth line.",1);

Author: Arnaud Delorme, CNL / Salk Institute, 2001

See also: eeglab()

See the matlab file pop_comments.m (may require other functions)

Back to functions