aboutsummaryrefslogtreecommitdiff
path: root/octave/closed_quant_slope.m
diff options
context:
space:
mode:
authorAuthor Name <[email protected]>2023-07-07 12:20:59 +0930
committerDavid Rowe <[email protected]>2023-07-07 12:29:06 +0930
commitac7c48b4dee99d4c772f133d70d8d1b38262fcd2 (patch)
treea2d0ace57a9c0e2e5b611c4987f6fed1b38b81e7 /octave/closed_quant_slope.m
shallow zip-file copy from codec2 e9d726bf20
Diffstat (limited to 'octave/closed_quant_slope.m')
-rw-r--r--octave/closed_quant_slope.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/octave/closed_quant_slope.m b/octave/closed_quant_slope.m
new file mode 100644
index 0000000..7d5a465
--- /dev/null
+++ b/octave/closed_quant_slope.m
@@ -0,0 +1,3 @@
+function b = closed_quant_slope(b)
+ b(1) = max(0.5, b(1));
+end