image thumbnail

updated 9 months ago

Scalable Vector Graphics (SVG) Export of Figures by Juerg Schwizer

Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). (plot2svg, svg filters, 3d)

demo_svg_water

plot2svg.m

simulink2svg

image thumbnail

updated 5 days ago

Bar Chart with Error Bars by Martina Callaghan

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

barwitherr(errors,varargin)

image thumbnail

updated almost 3 years ago

Arduino IO package: Slides and Examples by Giampiero Campa

Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". (analog, arduino, motor)

example_io.m

example_mot.m

image thumbnail

updated almost 7 years ago

HERRORBAR by Jos (10584)

Horizontal errorbar plot. (errorbar, horizontal, error)

herrorbar(x, y, l, u, symbol)

image thumbnail

updated 10 months ago

inpaint_nans by John D'Errico

Interpolates (& extrapolates) NaN elements in a 2d array. (utterly crazy memory ..., inpainting, missing values)

(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 1 year ago

Kalman Filter in Matlab (Tutorial) by Farhat Masood

Learn how to Implement Kalman Filter in Matlab. (covariance, kalman, kalman filter)

(A*s1*C'+V12)/(V2+C*s1*C'); dd=max(max(abs(k1-k0))); ...

kalmanf(s)

image thumbnail

updated 1 year ago

polyfitn by John D'Errico

Polynomial modeling in 1 or n dimensions (polynomial, curve, regression)

polyfitn_demo

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

image thumbnail

updated 2 years ago

Write Cell Array to Text File by Roland Pfister

A cell array is written to a delimited output file, incl. options for appending & custom delimiters. (array, cell, dlmwrite)

dlmcell(file,cell_array,varargin)

image thumbnail

updated 8 years ago

Plot 2D/3D Vector with Arrow by Rentian Xiong

This function plots a line vector with arrow head. (arrow, 3d, 2d)

vectarrow(p0,p1)

image thumbnail

updated 1 year ago

xml2struct by Wouter Falkena

Convert an xml file into a MATLAB structure for easy access to the data. (xml, xml2struct, struct)

xml2struct( file )

image thumbnail

updated 9 years ago

matrix2latex by Moritz Koehler

MATLAB array to LaTeX table converter. (table, matrix, array)

matrix2latex(matrix, filename, varargin)

image thumbnail

updated 4 years ago

JSON Parser by Joel Feenstra

Parses JSON strings into structures and cells (data import, json, cell arrays)

parse_json(json)

image thumbnail

updated 4 years ago

Writing Fast MATLAB Code by Pascal Getreuer

Speed up your project with this collection of techniques. (programming, article, paper)

image thumbnail

updated 3 years ago

SeisLab 3.01 by Eike Rietsch

Release 10.0301 of a collection of functions for analysis/display of seismic and well-log data. (earth science, well logs, seismic)

advexpfig(fh,fName,format,varargin)

linewrap(s, maxchars)

ple(s)

image thumbnail

updated 4 years ago

String Toolkits by Dahua Lin

A set of useful string manipulation functions that MATLAB does not offer (strings, split, join string)

strendswith(s, pat)

strgsub(s, re, replacement)

strjoin(terms, delimiter)

image thumbnail

updated 8 years ago

XML Toolbox by Marc Molinari

Conversion of MATLAB data types to XML and vice versa. (xml, xml toolbox, data export)

toolbox_test

strsplit.m

unblank.m

image thumbnail

updated 3 years ago

Mathematica Symbolic Toolbox for MATLAB--Version 2.0 by Ben Barrowes

A symbolic toolbox for MATLAB based on Mathematica. (code generation, mathlink, matlab)

testscript.m

image thumbnail

updated 5 years ago

moving_average v3.1 (Mar 2008) by Carlos Adrian Vargas Aguilera

Smooths a matrix (with/without NaN's) via recursive moving average method and eliminates data gaps. (moving average, filter2, nan)

image thumbnail

updated 9 months ago

Numerical Computing with MATLAB by Cleve Moler

Apps from Numerical Computing with MATLAB (numerical methods, random numbers, article)

Numerical Computing with MATLAB

image thumbnail

updated 1 year ago

Adjust "quiver" arrowhead size by Kevin J. Delaney

Lets user easily tweak vectors plotted by "quiver", making arrowheads bigger or smaller. (arrowhead, quiver, vector)

adjust_quiver_arrowhead_size(quivergroup_handle, scaling_fa...

image thumbnail

updated 9 years ago

MATLAB R-link by Robert Henson

Functions for calling the statistical package R from within MATLAB. (statistics, r cran, after several issues ...)

closeR(handle)

evalR(command,noreturn)

getRdata(varname)

image thumbnail

updated 1 year ago

Variable Precision Integer Arithmetic by John D'Errico

Arithmetic with integers of fully arbitrary size. Arrays and vectors of vpi numbers are supported. (integer, biginteger, arithmetic)

demo_vpi

base2vpi(B,base)

bin2vpi(B)

image thumbnail

updated 2 months ago

PV array three level inverter (how connect ?) - help by Viliam

How do I connect a PV array to the converter? does not work... Please help me... (fotovoltaic, array, simulink)

foto

image thumbnail

updated 2 years ago

Image Error Measurements by Michael Chan

Measures the differences between 2 images, and measurement of image quality. (image processing, rmse, snr)

...

E=eme(X,M,L);

PSNR(A,B)

image thumbnail

updated 5 years ago

NaN Suite by Jan Gläscher

Descriptive Statistics for N-D matrices ignoring NaNs. (mean, sem, max)

nanmax(a,dim,b)

nanmean(x,dim)

nanmedian(x,dim)

image thumbnail

updated 5 months ago

Arrow3 Version 5 by Tom Davis

Draws lines with directional arrowheads. (arrow, arrow3, arrowhead)

hn=arrow3(p1,p2,s,w,h,ip,alpha,beta)

image thumbnail

updated 3 months ago

Simple Stock Ticker by David

A simple stock ticker app written with a MATLAB class (class, oop)

Simple Stock Ticker

simpleStockTicker

image thumbnail

updated 2 years ago

Simple example of PSO algorithm by Andrea Cirillo

Matlab function to find the minimum of a objective function with the PSO Algorithm (pso, function, minimum)

[p_min, f_min, iter]=pso(func, numInd, range, n_var, tolera...

image thumbnail

updated 5 years ago

Recursive directory listing by Gus Brown

Directory listing with a difference, supports directory wildcards. (difference, files, directories)

rdir(rootdir,varargin)

image thumbnail

updated 26 days ago

quiverwcolorbar by Melissa Day

Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. (quiver, vector, velocity)

quiverwcolorbar.m

image thumbnail

updated 5 years ago

Sorting a Cell Array by Jeff Jackson

This function will sort a cell array even if it is mixed. (cell arrays, sort cell array, structures)

sortcell(X, DIM)

image thumbnail

updated 9 years ago

JPEG Compression by Ohad Gal

An example for jpeg compression and the restoration. (compression, jpeg, dct transform)

jpeg

image thumbnail

updated 16 years ago

routh.m by Edmundo Rivera-Santos

Returns the symbolic Routh array given a polynomial. (routh, routn, symbolic math)

RA=routh(poli,epsilon);

image thumbnail

updated 5 months ago

Example MATLAB class wrapper for a C++ class by Oliver Woodford

An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. (c, mex, wrapper)

class_interface

image thumbnail

updated 1 year ago

PADCAT by Jos (10584)

concatenate vectors with different lengths by padding with NaN (v1.2, oct 2011) (matrix, matrices, matrix manipulation)

padcat(varargin)

image thumbnail

updated 12 months ago

DataHash by Jan Simon

MD5 or SHA hash for array, struct, cell or file (file, md5, array)

DataHash(Data, Opt)

image thumbnail

updated 1 year ago

Comparison of C++ and MATLAB Using Object Oriented Application Example by Stuart McGarrity

Wireless Communications Application Example Used to Compare C++ and MATLAB® Code (wireless, article, matlab)

[BER, errors]=btint(varargin)

arg=getArg(argPosition,vararg_in,default)

rsrc=setRSRCpulseShapingFilter(rsrc, rollOff)

image thumbnail

updated 1 year ago

OpenStreetMap Functions by Ioannis Filippidis

Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file. (data import, automotive, transportation)

...

...

[d pred]=dijkstra(A,u)

image thumbnail

updated 11 months ago

Export figure to 3D interactive PDF by Ioannis Filippidis

Export figure as a U3D file or directly to 3D interactive graphics within a PDF. (3d, u3d, graphics)

[strmodelshading, strfaces_colors, strfaceshading, strcolor...

arclength(px,py,varargin)

axes_extremal_xyz(ax)

image thumbnail

updated 10 years ago

save2word by Suresh Joel

Paste figure to Microsoft word automatically using ActiveX. (activex, word, utilities)

save2word(filespec,prnopt)

image thumbnail

updated 14 days 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 1 year ago

Simple example of genetic algorithm for optimization problems by Andrea Cirillo

It is used to generate useful solutions to optimization and search problems. (algorithm, genetic, optimization)

[p_min, iter, f]=genetic_algorithm (func, numMaxInd, numF, ...

image thumbnail

updated almost 3 years ago

fdep: a pedestrian function dependencies finder by us

FDEP dissects ML files and iteratively looks for all user defined functions used during runtime (nested, path, files)

fdep.m

r=tfdep3(varargin)

tfdep1

image thumbnail

updated 6 years ago

Grayscale to RGB Converter by Valeriy Korostyshevskiy

Convert grayscale images to RGB using a specified colormap. (color, grayscale, colormap)

grs2rgb(img, map)

image thumbnail

updated 9 months ago

Experiments with MATLAB by Cleve Moler

Apps from Experiments with MATLAB (mathematics, pick of the week, calculus)

Experiments with MATLAB

image thumbnail

updated 9 years ago

Find Peak Value by Geng Jun

Help you find peak value from a lot of data. (data, chemistry, peak value)

peak=fpeak(x,y,s,Range)

ma.m

image thumbnail

updated 4 months ago

CATSTRUCT by Jos (10584)

Concatenate/merge structures (v3.0, mar 2013). (concatenate, cell arrays, merge)

catstruct(varargin)

image thumbnail

updated 2 years ago

Get HTML Table Data into MATLAB by Jeremy Barry

Identify tables and interactively select the data to bring into MATLAB. (html, table, import)

getTableFromWeb(varargin)

getTableDataScript.m

image thumbnail

updated 6 years ago

cell2str by Per-Anders Ekstrom

Convert a 2-D cell array of strings to a string in MATLAB syntax. (cell arrays, structures, cell string mat2str)

cell2str(cellstr)

image thumbnail

updated 4 years ago

smooth2a by Greg Reeves

Smooths a 2D matrix using a mean filter over a user-defined rectangle. Ignores and preserves NaNs. (2d, approximation, interpolation)

smooth2a(matrixIn,Nr,Nc)

Contact us