MATLAB Answers

how to create separate events if I have the times at which they start and end in a flow time series data?

1 view (last 30 days)
Hazhan Majeed
Hazhan Majeed on 21 Apr 2021
Hello,
I am using a code that gives the times at which an event starts, peaks, and ends. (the result is shown in the pic attached). now i want to separate each event into different variables that has all the timesteps between start and end of the event . the code gives start time for each event in one vector variable called (shloc), end times of each event in another vector variable called (ehloc). the hole dataseries has 43 start points and end points. so i need to get 43 vectors for each event otomatically. if possible in one for loop command. could anyone help with this please?

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!