X-axis and Y-axis detection
조회 수: 2 (최근 30일)
이전 댓글 표시
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"
댓글 수: 0
답변 (1개)
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?
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!