Rank: 2638 based on 48 downloads (last 30 days) and 1 file submitted
photo

Jan Tore Korneliussen

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Jan Tore Korneliussen
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 May 2011 B-spline tools Basic toolbox for polynomial B-splines on a uniform grid. OO overloading of common operators. Author: Jan Tore Korneliussen splines, approximation, interpolation, toolbox 48 1
  • 4.0
4.0 | 1 rating
Comments and Ratings by Jan Tore Korneliussen
Updated File Comments Rating
29 Apr 2010 json4mat This Matlab toolbox converts JSON formats into (json2mat) and from (mat2json) Matlab structures. Author: Jonas Almeida

Thanks for a very useful toolbox. I found a certain nesting of MATLAB structures and cell arrays which can not be taken for a round-trip to JSON and back. This snippet fails in the json2mat call:

mystruct0_f1.fieldA = 'A';
mystruct0_f1.fieldB = 'B';
mystruct0.field0 = 1;
mystruct0.field1 = mystruct0_f1;

mystruct1_f3.fieldC = 'C';
mystruct1_f3.fieldD = 'D';
mystruct1.field2 = 2;
mystruct1.field3 = mystruct1_f3;

mycarr = {mystruct0, mystruct1};

json2mat(mat2json(mycarr))

The output:

??? Reference to non-existent element of a cell array.

Error in ==> json2mat at 23
M=extract_struct(JJ{1}{1});

Error in ==> json2mat>extract_struct at 60
y.(t{1}{1})=json2mat(t{1}{2});

Error in ==> json2mat at 23
M=extract_struct(JJ{1}{1});

Error in ==> json2mat>extract_cell at 70
tag{i}=json2mat(x(indOC(i,1):indOC(i,2)));

Error in ==> json2mat at 26
M=extract_cell(JJ{1}{1});

Error in ==> jsontest at 13
json2mat(mat2json(mycarr))

Comments and Ratings on Jan Tore Korneliussen's Files
Updated File Comment by Comments Rating
19 Jan 2011 B-spline tools Basic toolbox for polynomial B-splines on a uniform grid. OO overloading of common operators. Author: Jan Tore Korneliussen Srinivas Murthy

First of all, thanks a lot for the code..In bsplineNdtrans.m, roots of pole are being calculated and poles only between _1 to +1 are being considered. The roots of pole for any particular spline will be same and i feel this as a redundant calculation.
Also i am interested in calculating the partial derivatives(2-D data) i.e wrt x,y,xx,yy,xy,etc. It would be of great help if you can illustrate these calculations with the help of an example
Any help would be greatly appreciated..

Contact us