image thumbnail

updated 1 year ago

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

Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). (specialized, plotting, svg)

demo_svg_water

plot2svg.m

simulink2svg

image thumbnail

updated 7 years ago

HERRORBAR by Jos (10584)

Horizontal errorbar plot. (specialized, plotting, horizontal)

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

image thumbnail

updated 1 year 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 8 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 2 years ago

polyfitn by John D'Errico

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

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

polyn2sym(polyn)

image thumbnail

updated almost 2 years 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 4 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. (seismic, well logs, seislab)

...

MenuHandle=menu2pick_frequency_windows(figure_handle)

[a,b]=l1_slope_intercept(x,y,alpha)

image thumbnail

updated 5 years ago

String Toolkits by Dahua Lin

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

strendswith(s, pat)

strgsub(s, re, replacement)

strjoin(terms, delimiter)

image thumbnail

updated almost 10 years ago

matrix2latex by Moritz Koehler

MATLAB array to LaTeX table converter. (data import, data export, array)

matrix2latex(matrix, filename, varargin)

image thumbnail

updated 4 months ago

Support Vector Regression by Ronnie Clark

A MATLAB implementation of Support Vector Regression (SVR). (regression, nonlinear, machine learning)

svr(xdata,ydata,x,alpha, b, c, epsilon)

svr_test.m

image thumbnail

updated almost 9 years ago

XML Toolbox by Marc Molinari

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

toolbox_test

strsplit.m

unblank.m

image thumbnail

updated 10 years ago

JPEG Compression by Ohad Gal

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

jpeg

image thumbnail

updated 3 months 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 3 years ago

Simple example of PSO algorithm by Andrea Cirillo

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

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

image thumbnail

updated 2 months ago

1D Finite Element Method (FEM) Example by Cheuk

A 1D finite element method (FEM) example is provided to teach the basics of using FEM to solve PDEs. (finite, element, method)

a_def(node)

act_quad(dof_pos, ref_quad_pos, num_edges)

compute_RHS_global(RHS_local, loc_glob, num_edges)

image thumbnail

updated 17 years ago

routh.m by Edmundo Rivera-Santos

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

RA=routh(poli,epsilon);

image thumbnail

updated almost 9 years ago

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

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

vectarrow(p0,p1)

image thumbnail

updated almost 5 years ago

JSON Parser by Joel Feenstra

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

parse_json(json)

image thumbnail

updated 3 years ago

Image Error Measurements by Michael Chan

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

...

E=eme(X,M,L);

PSNR(A,B)

image thumbnail

updated 10 years ago

IEEE 802.11a WLAN model by Martin Clark

IEEE 802.11a WLAN physical layer model, with demonstration of adaptive modulation and coding. (wireless, 80211a, 80211)

IEEE80211a_graphics(s, ax, firstcall, params);

IEEE80211a_graphics(s, ax, firstcall, params);

IEEE80211a_open_graphics(blk, forceClose);

image thumbnail

updated 2 years ago

Kalman Filter in Matlab (Tutorial) by Farhat Masood

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

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

kalmanf(s)

image thumbnail

updated 9 months ago

MATLAB R-link by Robert Henson

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

closeR(handle)

evalR(command,noreturn)

getRdata(varname)

image thumbnail

updated 2 years ago

Simple example of genetic algorithm for optimization problems by Andrea Cirillo

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

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

image thumbnail

updated 7 years ago

Grayscale to RGB Converter by Valeriy Korostyshevskiy

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

grs2rgb(img, map)

image thumbnail

updated 2 years ago

Adjust "quiver" arrowhead size by Kevin J. Delaney

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

adjust_quiver_arrowhead_size(quivergroup_handle, scaling_...

image thumbnail

updated almost 4 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 (path, directories, files)

fdep.m

r=tfdep3(varargin)

tfdep1

image thumbnail

updated 9 months 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)

base2vpi(B,base)

bin2vpi(B)

binomfactors(n,k)

image thumbnail

updated 5 months ago

OpenStreetMap Functions by Ioannis Filippidis

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

...

...

[d pred]=dijkstra(A,u)

image thumbnail

updated 7 months ago

Export figure to 3D interactive PDF by Ioannis Filippidis

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

[strmodelshading, strfaces_colors, strfaceshading, strcol...

arclength(px,py,varargin)

axes_extremal_xyz(ax)

image thumbnail

updated 1 year ago

Arrow3 Version 5 by Tom Davis

Draws lines with directional arrowheads. (annotation, customization, arrow)

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

image thumbnail

updated 6 years ago

Matgraph by Ed Scheinerman

Toolbox for working with simple, undirected graphs (graph theory, toolbox, graphs)

check_matrix(A)

edraw(g,elist)

find_available

image thumbnail

updated 6 years ago

Recursive directory listing by Gus Brown

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

rdir(rootdir,varargin)

image thumbnail

updated almost 4 years ago

Routh-Hurwitz Stability Criterion with GUI MATLAB V3.3 by Christian H

This GUI Solve Routh-Hurwitz Stability Criterion (control design, matrix)

Gain_Finder(varargin)

Q=addlz(E,N)

Routh_Horwitz.m

image thumbnail

updated 10 months ago

struct2csv by James Slegers

Output a structure to a .csv file, with column headers (csv, struct, struct2csv)

struct2csv(s,fn)

image thumbnail

updated almost 2 years ago

DataHash by Jan Simon

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

DataHash(Data, Opt)

image thumbnail

updated almost 9 years ago

cell2csv by Rob Kohr

Writes cell array content into a *.csv file. (data import, data export, cell)

cell2csv(filename,cellArray,delimiter)

image thumbnail

updated 6 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. (filter design, filter analysis, moving average)

moving_average.m

moving_average2.m

nanmoving_average.m

image thumbnail

updated 1 year 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 2 years ago

Progress monitor (progress bar) that works with parfor by Jeremy

Displays the percentage of parfor iterations which have completed. (parfor, progress bar, progressbar)

parfor_progress(N)

parfor_progress_test.m

image thumbnail

updated almost 6 years ago

NaN Suite by Jan Gläscher

Descriptive Statistics for N-D matrices ignoring NaNs. (statistics, probability, nan)

nanmax.m

nanmean.m

nanmedian.m

image thumbnail

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

readtext by Peder Axensten

Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. (data import, data export, import)

readtext(text, delimiter, comment, quotes, options)

image thumbnail

updated 2 years 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 7 months ago

Bilinear interpolation of an image or matrix by Disi A

This function performs bilinear interpolation for a given image or matrix at any location (image processing, signal processing, optimization)

interVal=interpImg(img,yx,zpad)

image thumbnail

updated 7 years ago

Draw 3D arrows by Changshun Deng

A function to draw 3D-arrows. (specialized, plotting, arrow)

rotatedata.m

varargout=arrow3d(start,stop,ang,ltype,p,n)

x(~out); end;

image thumbnail

updated 3 years ago

Get HTML Table Data into MATLAB by Jeremy Barry

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

getTableFromWeb(varargin)

getTableDataScript.m

image thumbnail

updated 3 years ago

Get HTML-table data into MATLAB via urlread and without builtin browser by Sven Koerner

Based on getTableFromWeb with a little more functionality for bring in table data from web to MATLAB (urlread, cell array, data)

getTableFromWeb_mod(url_string, nr_table)

image thumbnail

updated 7 years ago

cell2str by Per-Anders Ekstrom

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

cell2str.m

image thumbnail

updated almost 7 years ago

Data scaling by Ani

Program to scale the values of a matrix from a user specified minimum to a user specified maximum (linear algebra, scale, scaling data)

scaledata(datain,minval,maxval)

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)

Contact us