filter out if fit the pattern.

조회 수: 1 (최근 30일)
Chiranjibi
Chiranjibi 2014년 7월 21일
댓글: Chiranjibi 2014년 7월 23일
I have written script to display hit the stretcher/channel combination.like,
stretcher 1, channel 5 appears to be hit.
stretcher 1, channel 7 appears to be hit.
stretcher 3, channel 9 appears to be hit.
stretcher 3, channel 12 appears to be hit.
So I want to write matlab script to display stretcher/channel combination if and only if it satisfy my trigger condition. The trigger condition is, if even numbered channel in stretcher 1 and odd numbered channel in stretcher 1 and likewise in stretcher 3, appears to be hit, this is the signature to look for trigger in which four channel affected in two different stretcher. Can you please help me to write matlab script, which filter out the channel/stretcher and display only "yes" if fit the trigger condition and "No" if don't fit the trigger condition. Thanks in advance.
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2014년 7월 22일
It is unclear exactly what data types the stretchers and channel variables are, and so trying to write code to determine if even or odd channel is hit is somewhat difficult. Please include some code with your attempt at solving the problem so that others can provide guidance on what to do next.
Chiranjibi
Chiranjibi 2014년 7월 23일
I have only 2 Stretcher, each stretcher has 32 channels (2 channel- layer system) upper layer of stretcher 1 are numbered by odd like 1,3,5,....and lower layer are numbered by even like 2,4,6,8.....and likewise in stretcher 3. So I want to display filtered channels for both stretcher which only fit on above trigger condition. That means filtered stretchers/channels are probably my good events. OR there are 3 trigger condition 1) if channel n & n+1 hit for n is odd (like ch1/ch2 or ch3/ch4.....hit). 2) if channel n & n+1 hit for n is even (like ch2/ch3 or ch4/ch5 hit). 3) if channel(n & n+3) is hit for n is odd (like ch1/ch4 or ch3/ch6 hit)and so on. I have written some script which shows hit stretcher/channel combination like above format.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by