Segmentation of a signal

6 visualizaciones (últimos 30 días)
Explorer
Explorer el 15 de Mzo. de 2016
Comentada: Image Analyst el 19 de Mzo. de 2018
I have row vector of ECG signal have 1 x n order. I want to make 200 segments of that row vector and each segment should contain 300 samples.
For example: First sample should contain values of row vector from 1 to 300, second sample should contain values of row vector 301 to 300 and so on.
How should I start?

Respuesta aceptada

Image Analyst
Image Analyst el 15 de Mzo. de 2016
Try this
signal200 = reshape(ecgSignal, [], 300);
  4 comentarios
touitou habadi
touitou habadi el 19 de Mzo. de 2018
how can i do signal segmentation by time,for example each segment contain 500 s.
Image Analyst
Image Analyst el 19 de Mzo. de 2018
You'd need a cell array because each segment might not have the same number of samples. You can use etime() to find out elapsed times.

Iniciar sesión para comentar.

Más respuestas (1)

Ashish Sheikh
Ashish Sheikh el 15 de Mzo. de 2016
Is n a factor of 200 ?
  1 comentario
Explorer
Explorer el 15 de Mzo. de 2016
The exact order of row vector is 1*537600

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by