Mercurial > octave
comparison scripts/signal/movfun.m @ 30236:628f26e122d9
maint: use rows() or columns() instead of size(__, 1 | 2) for clarity.
* ccolamd.cc, colamd.cc, Map.m, material.m, isocolors.m, isonormals.m,
isosurface.m, light.m, reducepatch.m, reducevolume.m, movfun.m, ilu.m,
__alltohandles__.m, dump_demos.m, mk-sparse-tst.sh:
Use rows() or columns() instead of size(__, 1 | 2) for clarity.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 11 Oct 2021 20:09:59 -0700 |
parents | 7854d5752dd2 |
children | 363fb10055df |
comparison
equal
deleted
inserted
replaced
30235:3646ef5efd27 | 30236:628f26e122d9 |
---|---|
159 ## is a function returning a @var{K}-dimensional row output, and only | 159 ## is a function returning a @var{K}-dimensional row output, and only |
160 ## dimension @var{D} is desired, then the following wrapper could be used. | 160 ## dimension @var{D} is desired, then the following wrapper could be used. |
161 ## | 161 ## |
162 ## @example | 162 ## @example |
163 ## @group | 163 ## @group |
164 ## @var{fcn} = @@(x) basefcn (x)(:,size(x,2) * (@var{D}-1) + (1:size(x,2))); | 164 ## @var{fcn} = @@(x) basefcn (x)(:,columns(x) * (@var{D}-1) + (1:columns(x))); |
165 ## @var{y} = movfun (@@fcn, @dots{}); | 165 ## @var{y} = movfun (@@fcn, @dots{}); |
166 ## @end group | 166 ## @end group |
167 ## @end example | 167 ## @end example |
168 ## | 168 ## |
169 ## @seealso{movslice, prepad, postpad, permute, reshape} | 169 ## @seealso{movslice, prepad, postpad, permute, reshape} |