From b46669ac9d76371a56f9d7c9c3abcd1ae3c895a8 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 15 May 2009 22:52:01 -0700 Subject: [PATCH] Fixed mlint end warnings --- sparse_to_csr.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sparse_to_csr.m b/sparse_to_csr.m index c4703eb..35cf129 100644 --- a/sparse_to_csr.m +++ b/sparse_to_csr.m @@ -31,12 +31,15 @@ nz = length(A); if length(nzi) ~= length(nzj), error('gaimc:invalidInput',... 'length of nzi (%i) not equal to length of nzj (%i)', nz, ... - length(nzj)); end + length(nzj)); + end if reta && length(varargin) < 3, error('gaimc:invalidInput',... - 'no value array passed for triplet input, see usage'); end + 'no value array passed for triplet input, see usage'); + end if ~isscalar(n), error('gaimc:invalidInput',... ['the final input to sparse_to_csr with triple input was not ' ... - 'a scalar']); end + 'a scalar']); + end else n = size(A,1); nz=nnz(A);