Split every current signal into N segments of Length L

조회 수: 8 (최근 30일)
Chloe Sim
Chloe Sim 2020년 2월 15일
댓글: Star Strider 2020년 2월 16일
Hello! I have a 3 phase raw current signal that I want to split into 100 segments of 0.1 second so as to reduce the data size for signal processing and takes only the peak to peak and amplitude maximum values. How can I archieve this in MATLAB?
  댓글 수: 1
dpb
dpb 2020년 2월 15일
Well, 0.1s of your signal will be however many points is 0.1/dt where dt is your sample rate.
Many of the signal processing toolbox functions work by windowing or virtually all Matlab functions will treat columns of an array as independent observations and operate by column.

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

채택된 답변

Star Strider
Star Strider 2020년 2월 15일
Assuming I understand waht you want to do, I would use the Signal Processing Toolbox buffer function to do that.
You would have to calculate ‘L’ (number of samples) based on your sampling frequency (in samples/time unit), so if the time units are seconds L = 0.1*sampling_frequency.
The buffer function returns the segments in column-major order, so you can do the fft on the output of your buffer call:
FT = buffer(your_signal, L)/L;
will return the scaled complex Fourier transform of each column.
  댓글 수: 6
Chloe Sim
Chloe Sim 2020년 2월 16일
Okays! Thank you so much for helping me!
Star Strider
Star Strider 2020년 2월 16일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by