Skip to content

Commit 82c9e91

Browse files
committed
fix invalid jdatadecode example
1 parent 398539d commit 82c9e91

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Contents.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@
129129
% structure; otherwise, the same as the input.
130130
%
131131
% examples:
132-
% obj=struct('_ArrayType_','double','_ArraySize_',[2 3],...
133-
% '_ArrayIsSparse_',1 ,'_ArrayData_',null);
134-
% jdata=jdatadecode(obj);
132+
% obj={[],{'test'},true,struct('sparse',sparse(2,3),'magic',uint8(magic(5)))}
133+
% jdata=jdatadecode(jdataencode(obj))
134+
% isequaln(obj,jdata)
135135
%
136136
% license:
137137
% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details

jdatadecode.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
% structure; otherwise, the same as the input.
4444
%
4545
% examples:
46-
% obj=struct('_ArrayType_','double','_ArraySize_',[2 3],...
47-
% '_ArrayIsSparse_',1 ,'_ArrayData_',null);
48-
% jdata=jdatadecode(obj);
46+
% obj={[],{'test'},true,struct('sparse',sparse(2,3),'magic',uint8(magic(5)))}
47+
% jdata=jdatadecode(jdataencode(obj))
48+
% isequaln(obj,jdata)
4949
%
5050
% license:
5151
% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details

0 commit comments

Comments
 (0)