We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c797bb2 commit 8360fd1Copy full SHA for 8360fd1
base64decode.m
@@ -17,6 +17,10 @@
17
if(nargin==0)
18
error('you must provide at least 1 input');
19
end
20
+if(exist('zmat')==3)
21
+ output=zmat(uint8(input),0,'base64');
22
+ return;
23
+end
24
if(exist('OCTAVE_VERSION','builtin'))
25
len=rem(numel(input),8)
26
if(len)
base64encode.m
+ output=zmat(uint8(input),1,'base64');
output = base64_encode(uint8(input));
return;
0 commit comments