Rank: 293 based on 374 downloads (last 30 days) and 1 file submitted
photo

Qianqian Fang

E-mail
Company/University
Harvard University

Personal Profile:
Professional Interests:
EM modeling, medical imaging

 

Watch this Author's files

 

Files Posted by Qianqian
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Sep 2014 Screenshot JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang jsonlab, json, matlab, octave, xml, parser 374 53
  • 4.5625
4.6 | 17 ratings
Comments and Ratings by Qianqian View all
Updated File Comments Rating
31 Jul 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

hi Richard

feel free to share your patch/update by sending me an email: fangqq <at> gmail.com. I will review it and commit it to the code repository (and add acknowledge to your contribution in the documentation).

just to understand your request, by "serialization", did you mean adding data as additional parameters? In the past, I would often do it by using a cell array "{obj1, obj2, obj3 ...}"

11 Jul 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

that's not true. high dimensional arrays are supported. what's not supported is the high-dimensional cell arrays.

30 Mar 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

hi Kai

can you try converting your input "review" (a char array) to unicode first by using native2unicode()?

not sure if it helps, in the last test in jsonlab/sample/demo_jsonlab_basic.m, I have a utf-8 encoded Chinese string. loadjson/savejson seem to work well with this example (my locale is en_US.UTF-8).

30 Mar 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

sorry, not in jsonlab_selftest.m, but demo_jsonlab_basic.m

10 Feb 2014 EzyFit 2.42 A free curve fitting toolbox for Matlab Author: Frederic Moisy

for those of you who want to set a bound to the parameters, you may try the following patch:

fangq@wazu:~/space/Libraries/ezyfit$ diff ezfit.m.old ezfit.m
203a204
> bounds={};
240a242,244
> if nargin>4
> bounds={varargin{5:end}};
> end
548c552
< m=fminsearch(@fitlin, m0);
---
> m=fminsearchbnd(@fitlin, m0,bounds{:});
559c563
< m=fminsearch(@fitlog, m0); % bug fixed here! (v2.51)
---
> m=fminsearchbnd(@fitlog, m0,bounds{:}); % bug fixed here! (v2.51)

you will need to download the fminsearchbnd function from

http://www.mathworks.com/matlabcentral/fileexchange/8277-fminsearchbnd-fminsearchcon

and put the files under your matlab search path.

to set a bound, use

fitdata=ezfit(xdata,ydata,fun,p_ini,lb,ub);

where lb and ub are the lower/upper bounds, respectively, similar to those required by fminsearchbnd.

Comments and Ratings on Qianqian's Files View all
Updated File Comment by Comments Rating
21 Oct 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang Alessandro

Hi Qianqian,

thank you for making available this very useful library.

I want to report what it looks like to be a bug. I noticed that if a cell-array contains matrices having same number of columns, and save/load it, the library concatenates vertically the matrices, outputting a single matrix. Please look at the code here below:
A = {rand(2,4), rand(3,4)};
savejson('', A, 'temp.json');
B = loadjson('temp.json');
whos A B

which outputs:
Name Size Bytes Class Attributes
A 1x2 384 cell
B 5x4 160 double

23 Sep 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang Buchholz, Joerg

31 Jul 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang Fang, Qianqian

hi Richard

feel free to share your patch/update by sending me an email: fangqq <at> gmail.com. I will review it and commit it to the code repository (and add acknowledge to your contribution in the documentation).

just to understand your request, by "serialization", did you mean adding data as additional parameters? In the past, I would often do it by using a cell array "{obj1, obj2, obj3 ...}"

30 Jul 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang Richard

Excellent library, really useful. I have a feature request though - adding support for serialisation of Matlab objects. I have modified the code so that struct2json is called with an object, which works correctly. Is there anywhere where I can contribute these changes back?

23 Jul 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang Evgeny

Was really useful for me for a simple task. One command and you're done

Contact us