Mercurial > hg > octave-nkf
diff scripts/signal/fftshift.m @ 17314:7f27a3cbdb41
Use Octave coding convention of 1 space after '%!' test prefix.
* scripts/signal/fftconv.m, scripts/signal/fftshift.m,
scripts/testfun/assert.m, test/args.tst:
Use Octave coding convention of 1 space after '%!' test prefix.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 21 Aug 2013 20:41:05 -0700 |
parents | a4969508008e |
children | d63878346099 |
line wrap: on
line diff
--- a/scripts/signal/fftshift.m +++ b/scripts/signal/fftshift.m @@ -85,47 +85,47 @@ %!test -%! x = [0:7]; -%! y = fftshift (x); -%! assert (y, [4 5 6 7 0 1 2 3]); -%! assert (fftshift (y), x); +%! x = [0:7]; +%! y = fftshift (x); +%! assert (y, [4 5 6 7 0 1 2 3]); +%! assert (fftshift (y), x); %!test -%! x = [0:6]; -%! y = fftshift (x); -%! assert (y, [4 5 6 0 1 2 3]); -%! assert (fftshift (y), [1 2 3 4 5 6 0]); +%! x = [0:6]; +%! y = fftshift (x); +%! assert (y, [4 5 6 0 1 2 3]); +%! assert (fftshift (y), [1 2 3 4 5 6 0]); %!test -%! x = [0:7]'; -%! y = fftshift (x); -%! assert (y, [4;5;6;7;0;1;2;3]); -%! assert (fftshift (y), x); +%! x = [0:7]'; +%! y = fftshift (x); +%! assert (y, [4;5;6;7;0;1;2;3]); +%! assert (fftshift (y), x); %!test -%! x = [0:6]'; -%! y = fftshift (x); -%! assert (y, [4;5;6;0;1;2;3]); -%! assert (fftshift (y), [1;2;3;4;5;6;0]); +%! x = [0:6]'; +%! y = fftshift (x); +%! assert (y, [4;5;6;0;1;2;3]); +%! assert (fftshift (y), [1;2;3;4;5;6;0]); %!test -%! x = [0:3]; -%! x = [x;2*x;3*x+1;4*x+1]; -%! y = fftshift (x); -%! assert (y, [[7 10 1 4];[9 13 1 5];[2 3 0 1];[4 6 0 2]]); -%! assert (fftshift (y), x); +%! x = [0:3]; +%! x = [x;2*x;3*x+1;4*x+1]; +%! y = fftshift (x); +%! assert (y, [[7 10 1 4];[9 13 1 5];[2 3 0 1];[4 6 0 2]]); +%! assert (fftshift (y), x); %!test -%! x = [0:3]; -%! x = [x;2*x;3*x+1;4*x+1]; -%! y = fftshift (x,1); -%! assert (y, [[1 4 7 10];[1 5 9 13];[0 1 2 3];[0 2 4 6]]); -%! assert (fftshift (y,1), x); +%! x = [0:3]; +%! x = [x;2*x;3*x+1;4*x+1]; +%! y = fftshift (x,1); +%! assert (y, [[1 4 7 10];[1 5 9 13];[0 1 2 3];[0 2 4 6]]); +%! assert (fftshift (y,1), x); %!test -%! x = [0:3]; -%! x = [x;2*x;3*x+1;4*x+1]; -%! y = fftshift (x,2); -%! assert (y, [[2 3 0 1];[4 6 0 2];[7 10 1 4];[9 13 1 5]]); -%! assert (fftshift (y,2), x); +%! x = [0:3]; +%! x = [x;2*x;3*x+1;4*x+1]; +%! y = fftshift (x,2); +%! assert (y, [[2 3 0 1];[4 6 0 2];[7 10 1 4];[9 13 1 5]]); +%! assert (fftshift (y,2), x);