image thumbnail

updated 1 day ago

libPLS: An Integrated Library for Partial Least Squares Regression and Discriminant Analysis by Hongdong Li

chemometrics, metabolomics, model population analysis, variable selection, feature selection (statistics, modeling, model population anal...)

C=ldapinv(X,y,weight)

CARS=carspls(X,y,A,fold,method,num,selectLV,originalVersi...

CV=carspls_mccv(X,y,A,N,method,num,selectLV,originalVersi...

image thumbnail

updated 2 days ago

export_fig by Oliver Woodford

Exports figures nicely to a number of vector & bitmap formats. (data export, export figure, print)

image thumbnail

updated 1 month ago

errorbarjitter by David Stern

Plot mean ± SD alongside jittered raw data (plotting, jitter, statistics)

errorbarjitter.m

image thumbnail

updated 2 months ago

polyfitn by John D'Errico

Polynomial modeling in 1 or n dimensions (polyfit, modeling, regression)

polyfitn_demo

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

image thumbnail

updated 3 months ago

matlab2tikz by Nico Schlömer

A script to convert MATLAB/Octave into TikZ figures for easy and consistent inclusion into LaTeX. (latex, figure, embed)

image thumbnail

updated 3 months ago

plot_google_map by Zohar Bar-Yehuda

Plot a google map on the background of the current figure using the Static Google Maps API. (plot, google, map)

plot_google_map(varargin)

image thumbnail

updated 4 months ago

txt2mat by Andres

fast and versatile ascii data import capable of handling large text files (data import, read, ascii)

txt2mat.m

image thumbnail

updated 8 months ago

Printing a formatted table by Daniel Wirtz

Allows to display and print simple text tables in MatLab. Plain and LaTeX format supported. (table, string table, char table)

PrintTable

image thumbnail

updated 10 months ago

notBoxPlot - alternative to box plots. by Rob Campbell

This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. (statistics, data exploration, plotting)

sem=SEM_calc(vect, CI)

tint=tInterval_Calc(vect, CI)

varargout=notBoxPlot(y,x,jitter,style)

image thumbnail

updated 11 months ago

Bar Chart with Error Bars by Martina Callaghan

This is a very simple extension of MatLab's bar function to add error bars. (error, bar, errorbar)

barwitherr(errors,varargin)

image thumbnail

updated 11 months ago

Color coded 3D scatterplot by Ken Garrard

Produces a 3D scatterplot of XYZ data with varying colors (specialized, plotting, scatterplot)

plot3k(L,varargin)

image thumbnail

updated 1 year ago

Panel by Ben Mitch

Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. (specialized, plotting, panel)

demopanel_callback(data)

demopanel_minihist(stats, show_xtick, show_ytick)

true) panel

image thumbnail

updated 1 year ago

Rotate X-axis tick labels by Ben Tordoff

Rotate x-tick labels to any angle, preserving font settings and coping with resize, zoom, pan etc (plotting, xtick)

rotateXLabels( ax, angle, varargin )

image thumbnail

updated 1 year ago

Publish dependent and called functions by Nick Angelini

Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. (publish, dependent, html)

Volume_Flow( r0 )

new_doc=publishdepfun(func,opts,add_fun,rm_fun)

Volume_Flow_Study.m

image thumbnail

updated 1 year ago

tightfig by Richard Crozier

Remove excess margins from figures. (figure, axes, magrgin)

tightfig(hfig)

image thumbnail

updated 1 year ago

Method for quantitative absorption spectroscopy, version 2.1 by Tom O'Haver

A computational method for quantitative analysis by multiwavelength absorption spectroscopy (chemistry, physics, absorption spectrosco...)

CalculateTfit(x,y,InstFunction,width,absorbance,InstWidth...

TFit3A1(n,h)

TFit3A2(n,h)

image thumbnail

updated almost 2 years ago

MyRegression by Giuseppe Cardillo

A simple function on LS linear regression with many informative outputs (statistics, probability, leastsquares linear r...)

[slope,intercept,STAT]=myregr(x,y,verbose)

image thumbnail

updated almost 2 years ago

Fast and efficient spectral clustering by Ingo

Perform fast and efficient spectral clustering algorithms (spectral clustering c..., toolbox)

SimGraph_Epsilon(M, epsilon)

SimGraph_Full(M, sigma)

SimGraph_NearestNeighbors(M, k, Type, sigma)

image thumbnail

updated almost 2 years ago

inpaint_nans by John D'Errico

Interpolates (& extrapolates) NaN elements in a 2d array. (nan, inpainting, replace)

(nn(:,1)<1)|(nn(:,1)>n)|(nn(:,2)<1)|(nn(:,2)>m); nn(L,...

valid{ind}; end end

inpaint_nans_demo.m

image thumbnail

updated almost 2 years ago

legendGrid by Mar Callau-Zori

LEGENDGRID Display legend in a grid mode. (legend, grid, figure)

legendGrid(varargin)

image thumbnail

updated 2 years ago

mcorr by Francisco de Castro

Single-figure plot of all correlations between the columns of an array and frequency distributions (data exploration, multiple correlation ..., mcorr)

mcorr(X,varargin)

image thumbnail

updated 2 years ago

LOWESS, Locally Weighted Scatterplot Smoothing for linear and non-linear data (enhanced) by Jeff Burkey

LOWESS, a robust regression like LOWESS allows detecton of a trend otherwise with too much variance (regression, line fit, weighted regression)

lowess(datain,f,wantplot,imagefile,xdata)

image thumbnail

updated 2 years ago

Violin Plots for plotting multiple distributions (distributionPlot.m) by Jonas

Function for plotting multiple histograms side-by-side in 2D - better than boxplot. (plotting, distributions, histogram)

colorCode2rgb(c)

countEntries(m,isRow, keepNaN)

distributionPlot(varargin)

image thumbnail

updated 2 years ago

plot spread points (beeswarm plot) by Jonas

plotSpread plots distributions of data points, adding jitter to the points to avoid overlap. (distributions, histograms, plotting)

distinguishable_colors(n_colors,bg,func)

isEven(in)

myErrorbar(varargin)

image thumbnail

updated 2 years ago

Generalized Bar Charts by Mike Sheppard

Stacked, Grouped, Clustered, Floating; and MIXED of any combination (statistics, data exploration, modeling)

bar2(varargin)

image thumbnail

updated 2 years ago

Make Pretty (Publishable) Graphs by Ruth Livingstone

Easily create publishable ready figures. Great used with export_fig or on its own. (figure, edit, graph)

pubgraph(fh,FS,LW,CL)

image thumbnail

updated 2 years ago

The N-way Toolbox by Rasmus Bro

Tools for fitting multi-way (tensor) models such as PARAFAC (statistics, probability, parafac)

B=unimodal(X,Y,Bold)

B=unimodalcrossproducts(XtX,XtY,Bold)

C=ckron(A,B)

image thumbnail

updated 2 years ago

Save Multiple Figures in a click by Nicolas Beuchat

Save multiple figures with a GUI in several formats. No need to save all figures one-by-one anymore! (multiple figures, save, export figure)

savemultfigs(varargin)

image thumbnail

updated 2 years ago

Outlier Detection and Removal [hampel] by Michael Lindholm Nielsen

Detect and replace outliers with appropriate local values in a non-linear time series. (hampel filter, outliers, time series)

hampel(X, Y, DX, T, varargin)

image thumbnail

updated 2 years ago

kmeans clustering by Mo Chen

Fully vectorized kmeans algorithm. Fast yet simple (10 lines) (kmeans, clustering, vector quantization)

litekmeans(X, k)

spread(X, label)

image thumbnail

updated 2 years ago

singlebox by Dennis

Flexible box plot creation (allows unequal sample sizes and displays sample size and outlier index) (statistics)

singlebox(data,boxcolor,sampleno,axhandle)

image thumbnail

updated 2 years ago

PLS regression or discriminant analysis, with leave-one-out cross-validation and prediction. by Cleiton Nunes

M-files for PLS, PLS-DA, with leave-one-out cross-validation and prediction (chemometrics, pls, partial least squares)

pls(x,y,vl,da)

plscv(x,y,vl,da)

plspred(x,model,y)

image thumbnail

updated 2 years ago

bar_setFaceAlpha by georg

Set the FaceAlpha property of BAR and BARH objects (visualization, bar plot)

bar_setFaceAlpha(ax,alpha)

image thumbnail

updated 2 years ago

Create Healthy Looking Error Bars by Jonathan C. Lansey

Plots nice error bars as the default. Can also top group plots with error bars. (errorbars, error bars, error)

errorb(x,y,varargin)

image thumbnail

updated almost 3 years ago

Pack & Unpack variables to & from structures with enhanced functionality by Adi Navve

v2struct packs and unpacks variables to and from structures with enhanced functionality. (variables, structures, struct)

v2struct

[]=v2structDemo2()

v2structDemo1()

image thumbnail

updated 3 years ago

saveaspdf by Laurent S

Save a figure as a clean pdf file ready for publication. (saveas, saveaspdf, pdf)

saveaspdf(h,filename)

image thumbnail

updated 3 years ago

Bar with errorbars by Venn Ravichandran

This code plots bars with errorbars, as simple as that. (bar, errorbar, gui)

errorbarbar(x,y,E,barSettings,lineSettings)

image thumbnail

updated 3 years ago

Chemometric data preprocessing by Cleiton Nunes

M-files for data preprocessing by several methods. (chemometrics, preprocessing, calibration)

[x_msc]=msc(x,xref)

abstrans(X)

auto(x)

image thumbnail

updated almost 4 years ago

figure inset by Moshe Lindner

The function plotting figure inside figure (main and inset) from 2 existing figures. (inset, insert, figure)

[h_main, h_inset]=inset(main_handle, inset_handle,inset_s...

inset_example.m

image thumbnail

updated almost 5 years ago

barweb (BARgraph With Error Bars) by Bolu Ajiboye

Plots a fully customizable grouped bar graph with error bars (specialized, plotting, bar graph)

barweb(barvalues, errors, width, groupnames, bw_title, bw...

image thumbnail

updated 5 years ago

arrow.m by Erik Johnson

Draw a line with an arrowhead. (annotation, customization, arrow)

arrow(varargin)

image thumbnail

updated 5 years ago

Sign correction in SVD and PCA by Rasmus Bro

Determines the right sign of the singular vectors in SVD (score- and loading vectors in PCA) (svd, evd, chemometrics)

sign_flip(loads,X)

image thumbnail

updated 6 years ago

Google Maps Loader by Alireza Fasih

Loading Google maps in Matlab. (google map, maps, loader)

GoogleMap(varargin)

test1.m

image thumbnail

updated almost 7 years ago

Consolidator by John D'Errico

Consolidates common elements in x (may be n-dimensional), aggregating corresponding y. (reduction, accumarray, interpolation)

consolidator(x,y,aggregation_mode,tol)

consolidator13(x,y,aggregation_mode,tol,tolerance_style)

consolidator13(x,y,aggregation_mode,tol,tolerance_style)

image thumbnail

updated 8 years ago

RAFisher2cda by Antonio Trujillo-Ortiz

Canonical Discriminant Analysis is a dimension-reduction technique related to PCA and CCA. (statistics, probability, canonical discriminan...)

RAFisher2cda(X,pp,c,alpha)

image thumbnail

updated 9 years ago

Clustering Toolbox by Janos Abonyi

The toolbox provides four categories of functions. (statistics, probability, clustering)

FCMclust(data,param)

FuzSam(proj,result,param)

GGclust(data,param)

image thumbnail

updated 11 years ago

Unimodal regression by Rasmus Bro

Unimodal least squares regression routine. (statistics, probability, monotonic)

B=unimodal(X,Y,Bold)

B=unimodalcrossproducts(XtX,XtY,Bold)

[b,All,MaxML]=ulsr(x,NonNeg);

image thumbnail

updated 11 years ago

NNLS and constrained regression by Rasmus Bro

M-files for non-negativity constrained least squares regression. (statistics, probability, nonnegativity)

fnnls(XtX,Xty,tol)

fnnlsb(XtX,Xty,P_old,Z_old,tol)

image thumbnail

updated 12 years ago

PARAFAC2 by Rasmus Bro

Algorithm for fitting the PARAFAC2 model which is more flexible than ordinary PARAFAC (statistics, probability, parafac2)

[A,H,C,P,fit,AddiOutput]=parafac2(X,F,Constraints,Options...

image thumbnail

updated 15 years ago

discrim by Michael Kiefte

This is version 0.3 of the Discriminant Analysis Toolbox with major bug fixes. (statistics, probability, discriminant)

confmat(c, d)

crossval(rule, X, k, v)

mahalanobis(X, Mu, C)

Contact us