comparison test/slice.tst @ 17182:c3c1ebfaa7dc

maint: Use common indentation for switch statement. * scripts/general/interp1.m, scripts/geometry/delaunay.m, scripts/help/__unimplemented__.m, scripts/image/cmunique.m, scripts/miscellaneous/edit.m, scripts/optimization/fzero.m, scripts/optimization/sqp.m, scripts/plot/__gnuplot_drawnow__.m, scripts/plot/hidden.m, scripts/plot/legend.m, scripts/plot/print.m, scripts/plot/printd.m, scripts/plot/private/__contour__.m, scripts/plot/private/__fltk_print__.m, scripts/plot/private/__gnuplot_print__.m, scripts/plot/private/__go_draw_axes__.m, scripts/plot/private/__print_parse_opts__.m, scripts/signal/periodogram.m, scripts/sparse/bicg.m, test/slice.tst, test/switch.tst: Use common indentation for switch statement.
author Rik <rik@octave.org>
date Sun, 04 Aug 2013 15:11:34 -0700
parents b1283d4c06c2
children
comparison
equal deleted inserted replaced
17181:3a23cbde59d5 17182:c3c1ebfaa7dc
16 ## along with Octave; see the file COPYING. If not, see 16 ## along with Octave; see the file COPYING. If not, see
17 ## <http://www.gnu.org/licenses/>. 17 ## <http://www.gnu.org/licenses/>.
18 18
19 %!function x = set_slice (size, dim, slice) 19 %!function x = set_slice (size, dim, slice)
20 %! x = ones (size); 20 %! x = ones (size);
21 %! switch dim 21 %! switch (dim)
22 %! case 11 22 %! case 11
23 %! x(slice) = 2; 23 %! x(slice) = 2;
24 %! case 21 24 %! case 21
25 %! x(slice, :) = 2; 25 %! x(slice, :) = 2;
26 %! case 22 26 %! case 22