Ask for steady-state identification of a signal vector

I have a vector data of electrical power consumption (consists of transient and steady state). I would like to identify steady-state period (start and stop point) of the data by the following condition: - The consecutive 5 elements of the data has difference value between each adjacent element <= threshold value. - The first element meets the condition shows the starting point of steady-state.
Ex. data = [0 0 0 40 70 65 52 45 32 30 33 31 32 29 33 35 22 0 0 0]
(By the above data , abs (diff(data)) = [0 0 40 30 15 13 7 13 2 3 2 1 3 4 2 13 22 0 0]
The consecutive 5 elements with diff between element <= threshold(let say=10) starts at diff data = 2 and ends at diff data = 2 (steady-state period).
Then the output should return data element '32' and '35' as the starting and stop points of steady-state.
How to write MATLAB code for such scenario? or any other recommended algorithm?
Thank you. Bundit

 채택된 답변

Bundit Buddhahai
Bundit Buddhahai 2014년 3월 28일

0 개 추천

Can anyone help on this stuff,please.

추가 답변 (1개)

Bundit Buddhahai
Bundit Buddhahai 2014년 3월 29일

0 개 추천

I have been notified that there were 2 users posted replies to this question. But when I reached this link, there is nothing of the 2 replies. What's up there?

댓글 수: 1

  1. The ‘answers’ were probably spam (there were several such this morning) and have since been deleted.
  2. Accept an answer only if it provides the information you want, and is the best solution to your question.

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

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by