Rank: 2137 based on 67 downloads (last 30 days) and 4 files submitted
photo

Jack Peterson

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Jack View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Jun 2013 Insert commas into numbers Insert commas into numbers. Author: Jack Peterson comma, number, integer, thousand seprator, thousand separator 19 1
08 May 2013 Convert Licor 81x file to Matlab structure Converts a .81x Licor file to a Matlab structure Author: Jack Peterson licor, structure, 81x, convert, file, data 19 0
29 Apr 2013 Round using error estimate Rounds a number and its error off so they are more readable. Author: Jack Peterson error, round, estimate 15 0
22 Apr 2013 Many observations from arbitrary PDF Generate many observations from an arbitrary PDF. Author: Jack Peterson pdf, arbitrary, random, sample, many 14 0
Comments and Ratings by Jack
Updated File Comments Rating
21 Apr 2013 Obs. from Arbitrary PDF Generate a sample from an arbitrary PDF. Author: Dave Dykes

Very useful! I modified this a bit to generate many random numbers more efficiently -- in case this would be helpful to anyone else, the modified file is at: https://github.com/tensorjack/randarbmulti/blob/master/randarbmulti.m

Comments and Ratings on Jack's Files
Updated File Comment by Comments Rating
04 Jun 2013 Insert commas into numbers Insert commas into numbers. Author: Jack Peterson Simon, Jan

A faster loop-free approach wich considers a fractional part also:
S = sprintf('%.16g', pi * 1e12);
S(2, strfind(S, '.') - 4:-3:1) = ',';
S = transpose(S(S ~= char(0)));

Contact us