Home > FMAToolbox > IO > NewEvents.m

NewEvents

PURPOSE ^

NewEvents - Create events structure.

SYNOPSIS ^

function events = NewEvents(times,description)

DESCRIPTION ^

NewEvents - Create events structure.

  USAGE

    events = NewEvents(times,description)

    times               event timestamps
    description         (common) event description

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function events = NewEvents(times,description)
0002 
0003 %NewEvents - Create events structure.
0004 %
0005 %  USAGE
0006 %
0007 %    events = NewEvents(times,description)
0008 %
0009 %    times               event timestamps
0010 %    description         (common) event description
0011 
0012 % Copyright (C) 2008-2011 by Michaƫl Zugaro
0013 %
0014 % This program is free software; you can redistribute it and/or modify
0015 % it under the terms of the GNU General Public License as published by
0016 % the Free Software Foundation; either version 3 of the License, or
0017 % (at your option) any later version.
0018 
0019 events.time = times;
0020 events.description = cell(size(times));
0021 [events.description{:}] = deal(description);

Generated on Fri 16-Mar-2018 13:00:20 by m2html © 2005