Segmentation of a signal

조회 수: 7 (최근 30일)
Explorer
Explorer 2016년 3월 15일
댓글: Image Analyst 2018년 3월 19일
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?

채택된 답변

Image Analyst
Image Analyst 2016년 3월 15일
Try this
signal200 = reshape(ecgSignal, [], 300);
  댓글 수: 4
touitou habadi
touitou habadi 2018년 3월 19일
how can i do signal segmentation by time,for example each segment contain 500 s.
Image Analyst
Image Analyst 2018년 3월 19일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Ashish Sheikh
Ashish Sheikh 2016년 3월 15일
Is n a factor of 200 ?
  댓글 수: 1
Explorer
Explorer 2016년 3월 15일
The exact order of row vector is 1*537600

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by