Giving labels to frames with for loop

1 view (last 30 days)
Alex
Alex on 11 Dec 2014
Hello everyone. I have an ecg signal of length 78367 samples, and i split it using enframe to 16 frames each of thenm have length 4650 samples. Now i have a vector called marker with values [633 14588 29470 36669 42308 49341 63250 77925 78367] and length 9 and a cell array label = [unknown''rest''city''highway''toll_to_toll''highway''city''rest''unknown'] Now i want to give one of the labels above to each frame. If the middle of each frame is greater than the marker in the same position the frame will have the label(i) else the label(2). For the frame 1 for example who's mean is 4650/2 > 634 therefore it belongs to the label(2) class. If you have an idea please share it with me

Answers (0)

Community Treasure Hunt

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

Start Hunting!