Mercurial > hg > octave-nkf
comparison scripts/polynomial/polyeig.m @ 16933:e39f00a32dc7
maint: Use parentheses around condition for switch(),while(),if() statements.
* libinterp/corefcn/dirfns.cc, libinterp/octave-value/ov-fcn-handle.cc,
liboctave/array/Sparse.cc, scripts/image/rgb2ind.m, scripts/io/importdata.m,
scripts/io/strread.m, scripts/optimization/fminbnd.m,
scripts/optimization/sqp.m, scripts/plot/graphics_toolkit.m,
scripts/plot/hdl2struct.m, scripts/plot/legend.m, scripts/plot/print.m,
scripts/plot/printd.m, scripts/plot/private/__contour__.m,
scripts/plot/private/__go_draw_axes__.m, scripts/plot/struct2hdl.m,
scripts/polynomial/polyeig.m, scripts/sparse/bicg.m, scripts/specfun/ellipke.m,
scripts/special-matrix/gallery.m, scripts/ui/errordlg.m, scripts/ui/helpdlg.m,
scripts/ui/inputdlg.m, scripts/ui/listdlg.m, scripts/ui/questdlg.m,
scripts/ui/warndlg.m: Use parentheses around condition for
switch(),while(),if() statements.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 09 Jul 2013 14:04:05 -0700 |
parents | e3dc9ff8e0f2 |
children | 1c89599167a6 |
comparison
equal
deleted
inserted
replaced
16932:c55df4e5e216 | 16933:e39f00a32dc7 |
---|---|
44 nin = numel (varargin); | 44 nin = numel (varargin); |
45 | 45 |
46 n = zeros (1, nin); | 46 n = zeros (1, nin); |
47 | 47 |
48 for cnt = 1 : nin | 48 for cnt = 1 : nin |
49 if ! ( issquare (varargin{cnt}) ) | 49 if (! issquare (varargin{cnt})) |
50 error ("polyeig: coefficients must be square matrices"); | 50 error ("polyeig: coefficients must be square matrices"); |
51 endif | 51 endif |
52 n(cnt) = size (varargin{cnt}, 1); | 52 n(cnt) = size (varargin{cnt}, 1); |
53 endfor | 53 endfor |
54 | 54 |
55 if numel (unique (n)) > 1 | 55 if (numel (unique (n)) > 1) |
56 error ("polyeig: coefficients must have the same dimensions"); | 56 error ("polyeig: coefficients must have the same dimensions"); |
57 endif | 57 endif |
58 n = unique (n); | 58 n = unique (n); |
59 | 59 |
60 ## matrix polynomial degree | 60 ## matrix polynomial degree |