Rank: 338 based on 303 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
03 Feb 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 303 49
  • 4.46154
4.5 | 13 ratings
Comments and Ratings by Qianqian View all
Updated File Comments Rating
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.

17 Oct 2013 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

based on the error, it sounds like you had an invalid json file. have you tested your json file by one of the json validators? for example:

http://jsonlint.com/

Comments and Ratings on Qianqian's Files View all
Updated File Comment by Comments Rating
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 Fang, Qianqian

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

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 Dmitry

You can't save multidimensional arrays with dimensionality larger than 2, is this true?

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 Fang, Qianqian

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 Fang, Qianqian

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

29 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 Kai

Works great with Romanized characters. However, I ran into some character encoding issues. I am trying to read in script-type languages (Arabic, Urdu, Dari, Farsi, etc.) and the imported text is

{"text":"حمایت اتحادیه میوه فروشان و سبزی فروشان افغانستان از تیم اصلاحات و همگرایی؛\nحوالی ساعت 8 امشب 27 ماه حوت سال روان... http://t.co/AAcvfHxYAN","isoLanguageCode":"fa"}

Resulting text stored in the array:

حمایت اتحادیه میوه فروشان و سبزی فروشان افغانستان از تیم اصلاحات و همگرایی؛ حوالی ساعت 8 امشب 27 ماه حوت سال روان... http://t.co/AAcvfHxYAN

I can get the characters to show up properly from a text file if:
a. I set my local Language Settings for
Persian/Arabic and

b. I specify UTF-9 encoding during fopen

>> file = fopen('tweet.txt','r','n','UTF-8');
>> review = fread(file,'*char')';
>> fclose(file);

Any thoughts?

Contact us