| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
ts1 = gettsafteratevent(ts,event)
ts1 = gettsafteratevent(ts,event,n)
ts1 = gettsafteratevent(ts,event) returns a new timeseries object ts1 with samples occurring at and after an event in ts, where event can be either a tsdata.event object or a string. When event is a tsdata.event object, the time defined by event is used. When event is a string, the first tsdata.event object in the Events property of the time series ts that matches the event name specifies the time.
ts1 = gettsafteratevent(ts,event,n) returns a new timeseries object ts1 with samples at and after an event in ts, where n is the number of the event occurrence with a matching event name.
When the timeseries object ts contains date strings and event uses numeric time, the time selected by the event is treated as a date that is calculated relative to the StartDate property in ts.TimeInfo.
When ts uses numeric time and event uses calendar dates, the time selected by the event is treated as a numeric value that is not associated with a calendar date.
gettsafterevent, gettsbeforeevent, gettsbetweenevents, tsdata.event, tsprops
![]() | gettimeseriesnames | gettsafterevent | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |