Rank: 3459 based on 35 downloads (last 30 days) and 4 files submitted
photo

Jack Peterson

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Jack Peterson 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 9 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 9 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 9 0
22 Apr 2013 Many observations from arbitrary PDF Generate many observations from an arbitrary PDF. Author: Jack Peterson pdf, arbitrary, random, sample, many 8 0
Comments and Ratings by Jack Peterson
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 Peterson's Files
Updated File Comment by Comments Rating
04 Jun 2013 Insert commas into numbers Insert commas into numbers. Author: Jack Peterson Jan Simon

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