diff options
| author | Davit Grigoryan <[email protected]> | 2026-04-09 12:25:24 -0700 |
|---|---|---|
| committer | Davit Grigoryan <[email protected]> | 2026-04-22 02:37:26 -0700 |
| commit | 14ca50edb249d5f4ef621903259d955deb3a2fc3 (patch) | |
| tree | a1798764b97c2c351ea9c8ab1422886e9488d18b /TapTogglingAlgos/Threshold.m | |
Diffstat (limited to 'TapTogglingAlgos/Threshold.m')
| -rw-r--r-- | TapTogglingAlgos/Threshold.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/TapTogglingAlgos/Threshold.m b/TapTogglingAlgos/Threshold.m new file mode 100644 index 0000000..e81f10b --- /dev/null +++ b/TapTogglingAlgos/Threshold.m @@ -0,0 +1,5 @@ +function mask = Threshold(taps, thresholdPercent, ~) + mask = ones(size(taps)); + maxTapVal = max(abs(taps)); + mask(abs(taps) < thresholdPercent*maxTapVal) = 0; +end
\ No newline at end of file |
