diff scripts/signal/movfun.m @ 28945:6e460773bdda

maint: Use newlines after "function" and before "endfunction" for clarity. * quad2d.m, rng.m, __ok_cancel_dlg__.m, __unimplemented__.m, get_first_help_sentence.m, imformats.m, vectorize.m, ordeig.m, inputParser.m, tar_is_bsd.m, publish.m, axis.m, legend.m, polar.m, __plt__.m, print.m, __add_default_menu__.m, __gnuplot_draw_axes__.m, struct2hdl.m, movfun.m, gmres.m, pcg.m, __alltohandles__.m, tfqmr.m, betaincinv.m, gammainc.m, gammaincinv.m, mean.m, weboptions.m: Use newlines after "function" and before "endfunction" for clarity.
author Rik <rik@octave.org>
date Fri, 16 Oct 2020 09:27:56 -0700
parents 2883b3d08b7e
children 7854d5752dd2
line wrap: on
line diff
--- a/scripts/signal/movfun.m	Thu Oct 15 21:24:06 2020 -0700
+++ b/scripts/signal/movfun.m	Fri Oct 16 09:27:56 2020 -0700
@@ -311,6 +311,7 @@
 ## Apply "shrink" boundary conditions
 ## Function is not applied to any window elements outside the original data.
 function y = shrink_bc (fcn, x, idxp, win, wlen, odim)
+
   N   = length (x);
   idx = idxp + win;
   tf  = (idx > 0) & (idx <= N);  # idx inside boundaries
@@ -324,6 +325,7 @@
     k      = idx(tf(:,i),i);
     y(i,:) = fcn (x(k));
   endfor
+
 endfunction
 
 ## Apply replacement value boundary conditions