Rank: 36 based on 904 downloads (last 30 days) and 22 files submitted
photo

Aslak Grinsted

E-mail
Company/University
Centre for Ice and Climate, NBI, Copenhagen University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Aslak View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Aug 2011 Screenshot timedwaitbar.m A progress bar in a single line of code with ETA Author: Aslak Grinsted progressbar, progress, waitbar, progbar, timed, eta 2 0
08 Jul 2011 Screenshot quantreg.m - quantile regression Quantile regression with bootstrapping confidence intervals Author: Aslak Grinsted percentile, robust fitting, median, multiple, linear, regression 49 6
  • 3.5
3.5 | 2 ratings
07 Jul 2011 Screenshot fftnoise - generate noise with a specified power spectrum Useful helper function for Monte Carlo null-hypothesis tests and confidence interval estimation. Author: Aslak Grinsted surrogate, noise, random, generator, statistics, monte carlo 6 0
01 Jul 2011 Screenshot Naming figures (fig.m) Create new figures with a windowtitle. Author: Aslak Grinsted fig, window, figure, name, title, customization 5 0
01 Jul 2011 gap size Calculates number of consequtive NaNs in a vector. Author: Aslak Grinsted gap, nan, length, missing data 2 2
  • 4.0
4.0 | 1 rating
Comments and Ratings by Aslak View all
Updated File Comments Rating
26 Jun 2012 PDD Melt Calculates melt for a DEM based on positive degree days factor Author: Felix Hebeler

26 Jun 2012 PDD Melt Calculates melt for a DEM based on positive degree days factor Author: Felix Hebeler

05 Sep 2011 columnlegend Creates a legend with a specified number of columns Author: Simon Henin

Nice, useful and compact code! It would be nice if i could give it a list of handles to put in the legend.

25 Aug 2011 extrema.m, extrema2.m Search all extrema points of a time series or a surface with/without NaN's. Author: Carlos Adrian Vargas Aguilera

Nice. There is also the built-in function findpeaks from the signal processing toolbox:

http://www.mathworks.se/help/toolbox/signal/findpeaks.html

08 Aug 2011 quantreg.m - quantile regression Quantile regression with bootstrapping confidence intervals Author: Aslak Grinsted

@mohammad: The code does do MLR. Here's an example with multiple predictors:

X=randn(100,4);
y=X*[4 2 4 1]'+randn(100,1)*.2;
[p,stats]=quantreg(X,y,.9);

Comments and Ratings on Aslak's Files View all
Updated File Comment by Comments Rating
24 Apr 2013 Moving averages / Moving median etc Calculates moving averages (or median/fun) of a timeseries. Author: Aslak Grinsted Dan, Codrut

12 Mar 2013 Subaxis - Subplot Use HTML jargon for multi axis layout. Author: Aslak Grinsted Matthias

I could restore the subplot(2,2,[1 3]) behaviour by changing the case 1 in the switch length(Args.NumericArguments) block (line 64) to this:

if numel(Args.NumericArguments{1}) == 2 % restore subplot(m,n,[x y]) behaviour
[x1 y1] = ind2sub([Args.cols Args.rows],Args.NumericArguments{1}(1)); % subplot and ind2sub count differently (column instead of row first) --> switch cols/rows
[x2 y2] = ind2sub([Args.cols Args.rows],Args.NumericArguments{1}(2));
else
x1=mod((Args.NumericArguments{1}-1),Args.cols)+1; x2=x1;
y1=floor((Args.NumericArguments{1}-1)/Args.cols)+1; y2=y1;
end

12 Mar 2013 Subaxis - Subplot Use HTML jargon for multi axis layout. Author: Aslak Grinsted Matthias

07 Mar 2013 Subaxis - Subplot Use HTML jargon for multi axis layout. Author: Aslak Grinsted Raul

This function has been very useful! thanks!

07 Mar 2013 Subaxis - Subplot Use HTML jargon for multi axis layout. Author: Aslak Grinsted Raul

Top Tags Applied by Aslak
statistics, probability, annotation, customization, boxcar
Files Tagged by Aslak View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Aug 2011 Screenshot timedwaitbar.m A progress bar in a single line of code with ETA Author: Aslak Grinsted progressbar, progress, waitbar, progbar, timed, eta 2 0
08 Jul 2011 Screenshot quantreg.m - quantile regression Quantile regression with bootstrapping confidence intervals Author: Aslak Grinsted percentile, robust fitting, median, multiple, linear, regression 49 6
  • 3.5
3.5 | 2 ratings
07 Jul 2011 Screenshot fftnoise - generate noise with a specified power spectrum Useful helper function for Monte Carlo null-hypothesis tests and confidence interval estimation. Author: Aslak Grinsted surrogate, noise, random, generator, statistics, monte carlo 6 0
01 Jul 2011 Screenshot Naming figures (fig.m) Create new figures with a windowtitle. Author: Aslak Grinsted fig, window, figure, name, title, customization 5 0
01 Jul 2011 gap size Calculates number of consequtive NaNs in a vector. Author: Aslak Grinsted gap, nan, length, missing data 2 2
  • 4.0
4.0 | 1 rating

Contact us