Rank: 939 based on 73 downloads (last 30 days) and 5 files submitted
photo

Petter

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Petter View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
11 Dec 2011 Screenshot Inpainting (coherency sensitive hashing) Image inpainting using coherency sensitive hashing (CSH) Author: Petter inpainting 14 0
05 Nov 2010 Published MATLAB Files INT64 arithmetic in MATLAB Enables int64 Addition, subtraction, multiplication, division and modulus. Author: Petter bitshift, addition, absolute value, arithmetic, division, multiplication 19 19
  • 5.0
5.0 | 5 ratings
09 Jul 2009 Jacobi and Legendre symbol JACOBI computes the Jacobi symbol (m/n), a generalization of the Legendre symbol. Author: Petter number theory, jacobi symbol 7 1
05 Jun 2009 Use C++ "new" and "delete" in MATLAB MEX files This code modífies "new" and "delete" to register all allocated memory with the memory manager. Author: Petter c, memory, delete, new, memory management 8 2
  • 5.0
5.0 | 2 ratings
12 Feb 2009 Published MATLAB Files 0-1 Knapsack Solves the 0-1 knapsack problem with positive integer weights. Author: Petter knapsack, dynamic programming, 01 knapsack 25 5
  • 5.0
5.0 | 3 ratings
Comments and Ratings by Petter View all
Updated File Comments Rating
30 Jan 2012 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

The following seems to fix the ylabel issue:

if get(ax, 'YLabel') == id
    x=fontsize*1.25*1.2;
end

after x is computed in text2svg.

30 Jan 2012 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

ylabels end up too close to the yticks on the axis in the SVG file. The Matlab figure is correct.

22 Jul 2011 Matlab 3D figure to 3D (X)HTML Converts 3D objects of a Matlab figure to XHTML embedded X3D file. Interactive 3D website graphics. Author: Dirk-Jan Kroon

Comments are almost completely absent from the code.

29 May 2011 OpenSURF (including Image Warp) SURF (Speeded Up Robust Features) image feature point detection / matching, as in SIFT Author: Dirk-Jan Kroon

Kyle: use ransac with a similarity transform.

17 May 2011 INT64 arithmetic in MATLAB Enables int64 Addition, subtraction, multiplication, division and modulus. Author: Petter

Vincent: Interesting. I thought the standard allowed the pasting of operators. Is this not true?

Comments and Ratings on Petter's Files View all
Updated File Comment by Comments Rating
05 Aug 2011 INT64 arithmetic in MATLAB Enables int64 Addition, subtraction, multiplication, division and modulus. Author: Petter Jon

Seamless use. Well done Petter and thanks!

03 Jul 2011 Use C++ "new" and "delete" in MATLAB MEX files This code modífies "new" and "delete" to register all allocated memory with the memory manager. Author: Petter Hawren

tested. it is working

17 May 2011 INT64 arithmetic in MATLAB Enables int64 Addition, subtraction, multiplication, division and modulus. Author: Petter Petter

Vincent: Interesting. I thought the standard allowed the pasting of operators. Is this not true?

23 Feb 2011 Use C++ "new" and "delete" in MATLAB MEX files This code modífies "new" and "delete" to register all allocated memory with the memory manager. Author: Petter Tim

I think you're missing some: return ptr;

16 Dec 2010 Jacobi and Legendre symbol JACOBI computes the Jacobi symbol (m/n), a generalization of the Legendre symbol. Author: Petter McClintock, Sean

There are a couple of bugs in this program...

In line 36, we want to test if n=+/-1 mod8, however, since matlab will return a value from 0 to 7 for mod(n,8),

if abs(mod(n,8))==1 is not adequate,

Perhaps

if mod(n,8)==1
    j = jacobi(m/2,n);
elseif mod(n,8)==7
    j = jacobi(m/2,n);
etc would be better.

Also, I don't think this program deals with negative m.

Top Tags Applied by Petter
01 knapsack, 3d, absolute value, addition, arithmetic
Files Tagged by Petter View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
11 Dec 2011 Screenshot Inpainting (coherency sensitive hashing) Image inpainting using coherency sensitive hashing (CSH) Author: Petter inpainting 14 0
05 Nov 2010 Published MATLAB Files INT64 arithmetic in MATLAB Enables int64 Addition, subtraction, multiplication, division and modulus. Author: Petter bitshift, addition, absolute value, arithmetic, division, multiplication 19 19
  • 5.0
5.0 | 5 ratings
09 Jul 2009 Jacobi and Legendre symbol JACOBI computes the Jacobi symbol (m/n), a generalization of the Legendre symbol. Author: Petter number theory, jacobi symbol 7 1
05 Jun 2009 Use C++ "new" and "delete" in MATLAB MEX files This code modífies "new" and "delete" to register all allocated memory with the memory manager. Author: Petter c, memory, delete, new, memory management 8 2
  • 5.0
5.0 | 2 ratings
12 Feb 2009 Published MATLAB Files 0-1 Knapsack Solves the 0-1 knapsack problem with positive integer weights. Author: Petter knapsack, dynamic programming, 01 knapsack 25 5
  • 5.0
5.0 | 3 ratings

Contact us at files@mathworks.com