Rank: 30 based on 766 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 4 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 54 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 14 0
01 Jul 2011 Screenshot Naming figures (fig.m) Create new figures with a windowtitle. Author: Aslak Grinsted fig, window, figure, name, title, customization 3 0
01 Jul 2011 gap size Calculates number of consequtive NaNs in a vector. Author: Aslak Grinsted gap, nan, length, missing data 1 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
17 Jun 2013 savefigure Easy way of saving figures to publication friendly format. Author: Aslak Grinsted Tieyuan

Very nice tool!

Could I save figure in color using saveFigure?

Thanks
Tieyuan

21 May 2013 Subaxis - Subplot Use HTML jargon for multi axis layout. Author: Aslak Grinsted Jakob

I slightly modified Matthias code below to make it work for an arbitrary long horizontal subregion subplot(m,n,x:y), e.g. subplot(2,3,1:3) or subplot(3,3,4:9):

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}(end));
else
x1=mod((Args.NumericArguments{1}-1),Args.cols)+1; x2=x1;
y1=floor((Args.NumericArguments{1}-1)/Args.cols)+1; y2=y1;
end

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

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 4 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 54 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 14 0
01 Jul 2011 Screenshot Naming figures (fig.m) Create new figures with a windowtitle. Author: Aslak Grinsted fig, window, figure, name, title, customization 3 0
01 Jul 2011 gap size Calculates number of consequtive NaNs in a vector. Author: Aslak Grinsted gap, nan, length, missing data 1 2
  • 4.0
4.0 | 1 rating

Contact us