image thumbnail

updated 10 days ago

cachedcall by Aslak Grinsted

Aslak Grinsted (view profile)

Cache the results of slow function calls (performance, cachedread, cache)

DataHash(Data, Opt)

cachedcall(varargin)

image thumbnail

updated 10 days ago

quantreg(x,y,tau,order,Nboot) by Aslak Grinsted

Aslak Grinsted (view profile)

Quantile regression with bootstrapping confidence intervals (statistics, quantile, median)

quantreg(x,y,tau,order,Nboot)

image thumbnail

updated 13 days ago

The MCMC hammer by Aslak Grinsted

Aslak Grinsted (view profile)

Markov Chain Monte Carlo sampling of posterior distribution (mcmc, markov chain, monte)

The MCMC hammer

gwmcmc.m

image thumbnail

updated 24 days ago

ImGRAFT by Aslak Grinsted

Aslak Grinsted (view profile)

An Image Georectification and Feature Tracking toolbox (r2014b graphics ready, template matching, georectification)

image thumbnail

updated 29 days ago

datetickzoom for R2014b onwards by Aslak Grinsted

Aslak Grinsted (view profile)

Zoom Adaptive Datetick (datetick, zoom, resize)

datetickzoom(varargin)

image thumbnail

updated 1 month ago

Cross wavelet and wavelet coherence by Aslak Grinsted

Aslak Grinsted (view profile)

A cross wavelet and wavelet coherence toolbox (cross wavelet, wavelet coherence, continuous wavelet)

image thumbnail

updated 1 month ago

hslcolormap by Aslak Grinsted

Aslak Grinsted (view profile)

Generate pleasing HSL colormaps easily. (hsl, rgb, colormap)

hslcolormap_demo

hslcolormap(varargin)

image thumbnail

updated 1 month ago

Markov Chain Monte Carlo sampling of posterior distribution by Aslak Grinsted

Aslak Grinsted (view profile)

MCMC sampling of using a cascaded metropolis (metropolis, mcmc, likelihood)

mcmc(m,loglikelihood,logmodelprior,stepfunction,mccount,s...

image thumbnail

updated 1 month ago

netcdfobj - netcdf made easy. by Aslak Grinsted

Aslak Grinsted (view profile)

Easy interface for reading netcdf files. (oop, netcdf, object)

cdfdate2num(units,calendar,time)

netcdfatt

netcdfdim

image thumbnail

updated 3 months ago

depeval - check for dependencies by Aslak Grinsted

Aslak Grinsted (view profile)

Test if a function will work without access to specific toolboxes (dependencies, evaluate, eval)

depeval(evalstring,varargin)

image thumbnail

updated 3 months ago

Tidal fitting toolbox by Aslak Grinsted

Aslak Grinsted (view profile)

fit tidal components to an observed series of sea level and use them for prediction (madden julian, toolbox, tidal model)

tidalfit_demo

parseArgs(args,ArgStruct,varargin)

tidalfit(data,varargin)

image thumbnail

updated 4 months ago

geoimread by Aslak Grinsted

Aslak Grinsted (view profile)

Reads a sub region of a geotiff or geojp2 image. (geotiff, tiff, geotif)

geoimread

geoimread(filename,varargin)

image thumbnail

updated 5 months ago

Use shorthand for text layout by Aslak Grinsted

Aslak Grinsted (view profile)

Allows you to specify alignment options using single character flags. (text, layout)

h=ltext(x,y,s,flags,varargin)

image thumbnail

updated 6 months ago

flexload.m by Aslak Grinsted

Aslak Grinsted (view profile)

A simple and flexible text data file parser (textread, parse, dat)

[d,txt]=flexload(fname)

image thumbnail

updated 7 months ago

positive degree day for normally distributed temperatures by Aslak Grinsted

Aslak Grinsted (view profile)

expected positive degree days per day (pdd, normally distributed, positive degree days)

fPDD=normalpdd(Tmu,sigma)

image thumbnail

updated 8 months ago

fastscatter.m by Aslak Grinsted

Aslak Grinsted (view profile)

A much faster scatterplot (scatter, scatterplot, points)

h=fastscatter(X,Y,C,varargin)

image thumbnail

updated 8 months ago

Steady state snow and firn density model by Aslak Grinsted

Aslak Grinsted (view profile)

Calculates snow/firn depth density profiles using Herron-Langway type models. (snow, firn, herron)

[rho,zieq,t]=densitymodel(Tavg,bdot,rhos,z,model)

image thumbnail

updated 9 months ago

Subaxis - Subplot by Aslak Grinsted

Aslak Grinsted (view profile)

Use HTML jargon for multi axis layout. (annotation, customization, subplot)

ArgStruct=parseArgs(args,ArgStruct,varargin)

h=subaxis(varargin)

image thumbnail

updated 9 months ago

savefigure by Aslak Grinsted

Aslak Grinsted (view profile)

Easy way of saving figures to publication friendly format. (graphics import, graphics export, save)

ArgStruct=parseArgs(args,ArgStruct,varargin)

[varargout]=savefigure(fname,varargin)

image thumbnail

updated 1 year ago

Voxel viewshed by Aslak Grinsted

Aslak Grinsted (view profile)

Returns the visible area of a DEM from a given camera location. (viewshed, voxel, dem)

vis=voxelviewshed(X,Y,Z,camxyz)

image thumbnail

updated 1 year ago

Naming figures (fig.m) by Aslak Grinsted

Aslak Grinsted (view profile)

Create new figures with a window title which can be used as a handle. (annotation, customization, figure)

H=fig(varargin)

image thumbnail

updated 3 years ago

timedwaitbar.m by Aslak Grinsted

Aslak Grinsted (view profile)

A progress bar in a single line of code with ETA (progressbar, progress, waitbar)

timedwaitbar(x,varargin)

image thumbnail

updated 3 years ago

fftnoise - generate noise with a specified power spectrum by Aslak Grinsted

Aslak Grinsted (view profile)

Useful helper function for Monte Carlo null-hypothesis tests and confidence interval estimation. (surrogate, noise, random)

noise=fftnoise(f,Nseries)

image thumbnail

updated 3 years ago

gap size by Aslak Grinsted

Aslak Grinsted (view profile)

Calculates number of consequtive NaNs in a vector. (gap, nan, length)

sz=gapsize(x)

image thumbnail

updated almost 4 years ago

Moving averages / Moving median etc by Aslak Grinsted

Aslak Grinsted (view profile)

Calculates moving averages (or median/fun) of a timeseries. (time frequency, wavelets, moving averages)

[y]=moving(x,m,fun)

image thumbnail

updated 7 years ago

Seam Carving for content aware image resizing by Aslak Grinsted

Aslak Grinsted (view profile)

illustrative example of the seam carving algorithm. (seam carving, image resizing, content aware)

image thumbnail

updated almost 9 years ago

Surfer Griddata by Aslak Grinsted

Aslak Grinsted (view profile)

A gridding interface with surfer (v7). Works just like griddata. (griddata, surfer, kriging)

image thumbnail

updated 9 years ago

cut samples - interpolation by Aslak Grinsted

Aslak Grinsted (view profile)

Interpolates irregular spaced data by 'cutting' the x axis into specified intervals. (approximation, interpolation, cutsamples)

image thumbnail

updated 9 years ago

Average mutual information by Aslak Grinsted

Aslak Grinsted (view profile)

Average mutual information (statistics, probability, ami)

image thumbnail

updated 9 years ago

Moving variance by Aslak Grinsted

Aslak Grinsted (view profile)

Calculates moving variance of a time series. (statistics, probability, moving variance)

image thumbnail

updated almost 10 years ago

samexaxis (nice subplots with same x axis) by Aslak Grinsted

Aslak Grinsted (view profile)

Makes it alot easier to make nice figures with the same x axis. (annotation, customization, same x axis)

image thumbnail

updated almost 10 years ago

dispmtx by Aslak Grinsted

Aslak Grinsted (view profile)

Display a matrix in a nicely formatted way. (disp, matrix, dispmtx)

image thumbnail

updated 10 years ago

RD3 Library by Aslak Grinsted

Aslak Grinsted (view profile)

Loads and saves rd3 files (ground penetrating radar). (rd3, rad, radar)

[A,twt]=loadrd3(fname,varargin)

[dA,twt]=diffrd3(fname)

infos=rd3info(fname,varargin)

image thumbnail

updated 10 years ago

Parse function arguments by Aslak Grinsted

Aslak Grinsted (view profile)

A useful tool for parsing function arguments like 'cellspacing',6,'monkey',1 (parse, function, arguments)

image thumbnail

updated 11 years ago

tcolor (a fast pcolor that likes RGB images) by Aslak Grinsted

Aslak Grinsted (view profile)

Draws an image as a texture to a plane. (specialized, plotting, pcolor)

Contact us