-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Qianqian Fang
committed
Jun 11, 2019
1 parent
f86219d
commit 95b2eb0
Showing
5 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function newdata=jdataencode(data,varargin) | ||
% | ||
% newdata=jdataencode(data,opt,...) | ||
% | ||
% encode special MATLAB objects (cells, structs, sparse and complex arrays, | ||
% maps, graphs, function handles, etc) to the JData format | ||
% | ||
% authors:Qianqian Fang (q.fang <at> neu.edu) | ||
% | ||
% input: | ||
% data: a matlab object | ||
% opt: (optional) a list of 'Param',value pairs for additional options. | ||
% For all supported options, please see the help info for savejson.m | ||
% and loadjson.m | ||
% | ||
% output: | ||
% newdata: the covnerted data containing JData structures | ||
% | ||
% examples: | ||
% jd=jdataencode(struct('a',rand(5)+1i*rand(5),'b',[],'c',sparse(5,5))) | ||
% | ||
% license: | ||
% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details | ||
% | ||
% -- this function is part of JSONLab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) | ||
% | ||
|
||
newdata=loadjson(savejson('',data,varargin{:}),varargin{:},'JDataDecode',0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters