Rank: 4536 based on 18 downloads (last 30 days) and 3 files submitted
photo

Peter Cotton

E-mail
Company/University
Stanford

Personal Profile:

http://financialmathematics.com


 

Watch this Author's files

 

Files Posted by Peter Cotton View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Mar 2014 Integrals of gaussian against quadratic exponential Integrals of gaussian against quadratic exponential Author: Peter Cotton gaussian 6 0
12 Jun 2012 PGA leaderboard scraper Scrape player scores from the current leaderboard on the official PGA site Author: Peter Cotton data import 5 1
  • 4.0
4.0 | 1 rating
19 Sep 2007 Automated composition of function handles Automatically compose function handles Author: Peter Cotton function, function handle, automated program cre..., design 7 3
  • 4.5
4.5 | 2 ratings
Comments and Ratings by Peter Cotton View all
Updated File Comments Rating
04 Apr 2014 SLM - Shape Language Modeling Least squares spline modeling using shape primitives Author: John D'Errico

Tutorial gave me the impression that setting a LinearRegion would allow for linear extrapolation outside the knot points. Did I mistake the intent?

>> X = linspace(5, 10, 100);
Y = 0.5 + 2*X + 0.001*X.^2;
slm = slmengine( X, Y,'plot','on','LinearRegion',[-50,50]);
slmeval( -10, slm )

ans =

10.5209

>> slm.prescription.LinearRegion

ans =

-50 50

15 Aug 2010 nsumk Returns the number and listing of n-tuples of non-negative integers adding up to k. Author: Peter Cotton

Thanks Jan,
I'll update the description
Peter

Comments and Ratings on Peter Cotton's Files View all
Updated File Comment by Comments Rating
22 Aug 2012 Automated composition of function handles Automatically compose function handles Author: Peter Cotton Dan

funcompose('test') is not working, as in the call to at.m, al line 35 it looks for argin.m and argout.m, not included in the package. Not having the bioinformatics toolbox at disposal, to what extent would functor.m also from you, replace the functionalities of this m-file?

13 Jun 2012 PGA leaderboard scraper Scrape player scores from the current leaderboard on the official PGA site Author: Peter Cotton David

Nice code. Very instructive on how to scrape web pages (for a novice like me).

Small bug - line 34 should use 'altleaderboard2' not 'altleaderboard' in the regexp.

28 Oct 2010 Automated composition of function handles Automatically compose function handles Author: Peter Cotton Peter Cotton

I prefer and maintain functor.m (also on Matlab Central) rather than this code.

05 Jan 2008 Automated composition of function handles Automatically compose function handles Author: Peter Cotton

25 Sep 2007 Automated composition of function handles Automatically compose function handles Author: Peter Cotton

Good

Contact us