필터 지우기
필터 지우기

X-axis and Y-axis detection

조회 수: 1 (최근 30일)
khoo chai
khoo chai 2015년 2월 23일
편집: khoo chai 2015년 2월 24일
Hello,
I've got a signal as attached. What I'm trying to do is to detect the signal based on its Amplitude & time difference. So that it will detect and printout as follow:
"NORMAL" when (1.1 > Amplitude > 0.9) | (time difference doesn't matter)
"SAG" when (0.9 >= Amplitude >= 0.1) | (4 >= time difference >= 2)
"UNKNOWN" when (0.9 >= Amplitude >= 0.1) | (time difference <= 1)
So that based on signal, I should get:
"SAG,NORMAL,UNKNOWN,NORMAL,UNKNOWN,NORMAL,SAG,NORMAL,SAG"

답변 (1개)

Abhishek GS
Abhishek GS 2015년 2월 24일
Hi Khoo,
Do you have the signal values in MATLAB or are you reading from any sensor in real time ? Also what do you mean by time difference ? Is it time difference between the last time the same value got recorded?
  댓글 수: 1
khoo chai
khoo chai 2015년 2월 24일
편집: khoo chai 2015년 2월 24일
Hi Abhishek,
I'm sorry for my mistake and I've edited the document above. Actually it was voltage signal in real time. The time difference means that from 1s to 4s (by referring to "amplitude and time detection.jpg") the time difference is 3s. From 5s to 7s the time difference is 2s and etc...So that based on the conditions (Amplitude & time difference) that I've listed above, from 1s to 4s it is "SAG" due to (0.9 >= Amplitude >= 0.1) | (4 >= time difference >= 2). Then, it is "NORMAL" due to (1.1 > Amplitude > 0.9) | (time difference doesn't matter). Next is "UNKNOWN" due to (0.9 >= Amplitude >= 0.1) | (time difference <= 1) and etc...

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

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by