image thumbnail

updated 5 days ago

depeval(fname,varargin) by Aslak Grinsted

Test if a functions work without access to toolboxes (dependencies, evaluate, eval)

depeval(fname,varargin)

image thumbnail

updated 6 days ago

ImGRAFT by Aslak Grinsted

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

image thumbnail

updated 10 days ago

Tidal fitting toolbox by Aslak Grinsted

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 13 days ago

hslcolormap by Aslak Grinsted

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

hslcolormap_demo

hslcolormap(varargin)

image thumbnail

updated 14 days ago

geoimread by Aslak Grinsted

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

geoimread

geoimread(filename,varargin)

image thumbnail

updated 1 month ago

Use shorthand for text layout by Aslak Grinsted

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

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

image thumbnail

updated 2 months ago

Markov Chain Monte Carlo sampling of posterior distribution by Aslak Grinsted

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

[models,logP]=mcmc(m,loglikelihood,logmodelprior,stepfunc...

image thumbnail

updated 3 months ago

Cross wavelet and wavelet coherence by Aslak Grinsted

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

image thumbnail

updated 3 months ago

flexload.m by Aslak Grinsted

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

[d,txt]=flexload(fname)

image thumbnail

updated 4 months ago

positive degree day for normally distributed temperatures by Aslak Grinsted

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

fPDD=normalpdd(Tmu,sigma)

image thumbnail

updated 5 months ago

fastscatter.m by Aslak Grinsted

A much faster scatterplot (scatter, scatterplot, points)

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

image thumbnail

updated 5 months ago

Steady state snow and firn density model by Aslak Grinsted

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 6 months ago

Subaxis - Subplot by Aslak Grinsted

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

ArgStruct=parseArgs(args,ArgStruct,varargin)

h=subaxis(varargin)

image thumbnail

updated 6 months ago

savefigure by Aslak Grinsted

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 11 months ago

Voxel viewshed by Aslak Grinsted

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

netcdfobj - netcdf made easy. by Aslak Grinsted

Easy interface for reading netcdf files. (netcdf, object, data import)

time=cdfdate2num(units,calendar,time)

netcdfatt

netcdfdim

image thumbnail

updated 1 year ago

Naming figures (fig.m) by Aslak Grinsted

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

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

timedwaitbar(x,varargin)

image thumbnail

updated 3 years ago

quantreg.m - quantile regression by Aslak Grinsted

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

[p,stats]=quantreg(x,y,tau,order,Nboot);

image thumbnail

updated 3 years ago

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

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

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

sz=gapsize(x)

image thumbnail

updated 3 years ago

Moving averages / Moving median etc by Aslak Grinsted

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

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

image thumbnail

updated 8 years ago

Surfer Griddata by Aslak Grinsted

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

image thumbnail

updated almost 9 years ago

cut samples - interpolation by Aslak Grinsted

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

image thumbnail

updated almost 9 years ago

Average mutual information by Aslak Grinsted

Average mutual information (statistics, probability, ami)

image thumbnail

updated 9 years ago

Moving variance by Aslak Grinsted

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

image thumbnail

updated 9 years ago

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

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

image thumbnail

updated 9 years ago

dispmtx by Aslak Grinsted

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

image thumbnail

updated 10 years ago

RD3 Library by Aslak Grinsted

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

Boxpdf, Percentile by Aslak Grinsted

Returns the percentile of each sample in a vector (effectively 'boxing' the pdf). (statistics, probability, percentile)

image thumbnail

updated 10 years ago

Parse function arguments by Aslak Grinsted

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

image thumbnail

updated 10 years ago

normalizepdf.m by Aslak Grinsted

Forces the pdf of data to be normal. (statistics, probability, normal)

image thumbnail

updated 11 years ago

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

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

Contact us