Gating a channel
1 回表示 (過去 30 日間)
古いコメントを表示
I am looking for code to gate a sound channel in matlab. I am using a file of data points on a sound wave that I will assign time points to, rectify, envelope, and smooth. Then I need to gate the channel telling the program anything above value "x" is 1 and anything below "x" is 0 so I end up with a square pulse that I can measure. This is the step I am stuck on any help is greatly appreciated.
Thanks! Sonia
0 件のコメント
採用された回答
Walter Roberson
2011 年 11 月 21 日
uint8(value > x)
Question: what do you want your output to be if the value is exactly x ?
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Signal Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!