Skip to content

Commit 70551fe

Browse files
committed
remove warnings from matlab
1 parent 0d61c4b commit 70551fe

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

base64decode.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
% License : BSD, see LICENSE_*.txt
1515
%
1616

17-
error(nargchk(1, 1, nargin));
17+
if(nargin==0)
18+
error('you must provide at least 1 input');
19+
end
1820
error(javachk('jvm'));
1921
if ischar(input), input = uint8(input); end
2022

base64encode.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
% License : BSD, see LICENSE_*.txt
1515
%
1616

17-
error(nargchk(1, 1, nargin));
17+
if(nargin==0)
18+
error('you must provide at least 1 input');
19+
end
1820
error(javachk('jvm'));
1921
if ischar(input), input = uint8(input); end
2022

2123
output = char(org.apache.commons.codec.binary.Base64.encodeBase64Chunked(input))';
22-
24+
output = regexprep(output,'\r','');
2325
end

gzipdecode.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
% License : BSD, see LICENSE_*.txt
1515
%
1616

17-
error(nargchk(1, 1, nargin));
17+
if(nargin==0)
18+
error('you must provide at least 1 input');
19+
end
1820
error(javachk('jvm'));
1921
if ischar(input)
2022
warning('gzipdecode:inputTypeMismatch', ...

gzipencode.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
% License : BSD, see LICENSE_*.txt
1616
%
1717

18-
error(nargchk(1, 1, nargin));
18+
if(nargin==0)
19+
error('you must provide at least 1 input');
20+
end
1921
error(javachk('jvm'));
2022
if ischar(input), input = uint8(input); end
2123
if ~isa(input, 'int8') && ~isa(input, 'uint8')

zlibdecode.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
% License : BSD, see LICENSE_*.txt
1515
%
1616

17-
error(nargchk(1, 1, nargin));
17+
if(nargin==0)
18+
error('you must provide at least 1 input');
19+
end
1820
error(javachk('jvm'));
1921
if ischar(input)
2022
warning('zlibdecode:inputTypeMismatch', ...

zlibencode.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
%
1717

1818

19-
error(nargchk(1, 1, nargin));
19+
if(nargin==0)
20+
error('you must provide at least 1 input');
21+
end
2022
error(javachk('jvm'));
2123
if ischar(input), input = uint8(input); end
2224
if ~isa(input, 'int8') && ~isa(input, 'uint8')

0 commit comments

Comments
 (0)