filter out if fit the pattern.

1 Ansicht (letzte 30 Tage)
Chiranjibi
Chiranjibi am 21 Jul. 2014
Kommentiert: Chiranjibi am 23 Jul. 2014
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 Kommentare
Geoff Hayes
Geoff Hayes am 22 Jul. 2014
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 am 23 Jul. 2014
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by