image thumbnail

updated 1 year ago

struct2csv by James Slegers

James Slegers

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

struct2csv(s,fn)

image thumbnail

updated 1 month ago

DateStr2Num by Jan Simon

Jan Simon

Convert date string to date number - C-Mex: much faster than DATENUM (datevec, date, number)

DateStr2Num(S, F)

InstallMex(SourceFile, varargin)

uTest_DateStr2Num(doSpeed)

image thumbnail

updated 2 years ago

Arrow3 Version 5 by Tom Davis

Tom Davis

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

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

image thumbnail

updated 3 years ago

PADCAT by Jos (10584)

Jos (10584)

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

padcat(varargin)

image thumbnail

updated 10 years ago

M-file Header Template by Denis Gilbert

Denis Gilbert

Promotes better m-file documentation by encouraging authors to produce informative headers. (whitepaper, article, paper)

function_name(input1,input2,input3)

function_name(input1,input2,input3)

image thumbnail

updated 10 years ago

xyerrorbar by Nils Sjöberg

Nils Sjöberg

Errorbars for both x and y data. (specialized, plotting, errorbars)

image thumbnail

updated 3 years ago

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

Stuart McGarrity

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

[BER, errors]=btint(varargin)

arg=getArg(argPosition,vararg_in,default)

rsrc=setRSRCpulseShapingFilter(rsrc, rollOff)

image thumbnail

updated 9 years ago

cell2csv by Rob Kohr

Rob Kohr

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

image thumbnail

updated 18 years ago

routh.m by Edmundo Rivera-Santos

Edmundo Rivera-Santos

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

image thumbnail

updated almost 8 years ago

readtext by Peder Axensten

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 5 years ago

Bias Field Corrected Fuzzy C-Means by Dirk-Jan Kroon

Dirk-Jan Kroon

Estimates the illumination artifact in 2D (color) and 3D CT and MRI and segments into classes. (bias field, biasfield, segmentation)

I=imgaussian(I,sigma,siz)

[B,U]=BCFCM2D(Y,v,Options)

BCFCM3D.m

image thumbnail

updated 2 months ago

Bayesian Linear Regression by Soumya Banerjee

Soumya Banerjee

This is a set of MATLAB functions to do Bayesian linear regression (statistics, optimization, mathematics)

bayesian_regression

CALL_bayesian_regression

image thumbnail

updated 3 years ago

struct2xml by Wouter Falkena

Wouter Falkena

Convert a MATLAB structure into a XML file. (struct2xml, struct, xml)

struct2xml( s, varargin )

image thumbnail

updated almost 7 years ago

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

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

Find Peak Value by Geng Jun

Geng Jun

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

fpeak.m

ma.m

image thumbnail

updated almost 8 years ago

cell2str by Per-Anders Ekstrom

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 4 years ago

Nested sort of structure arrays by Jake Hughey

Jake Hughey

Perform a nested sort of a struct array based on multiple fields. (nested, sort, struct)

nestedSortStruct(aStruct, fieldNamesCell, directions)

nestedSortStruct2(aStruct, fieldNamesCell, directions, cl...

sortStruct(aStruct, fieldName, direction)

image thumbnail

updated 3 years ago

Create Healthy Looking Error Bars by Jonathan C. Lansey

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

Bilinear interpolation of an image or matrix by Disi A

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 almost 2 years ago

STRJOIN by Kota Yamaguchi

Kota Yamaguchi

Concatenate an array into a single string. (string, array, cellstr)

strjoin(input, separator)

image thumbnail

updated 9 years ago

Random Vectors with Fixed Sum by Roger Stafford

Roger Stafford

Randomly and uniformly generates vectors with a specified sum and values in a specified interval. (random, fixedsum, ndimensional)

randfixedsum(n,m,s,a,b)

image thumbnail

updated almost 7 years ago

Genetic Algorithm by Djaghloul Mehdi

Djaghloul Mehdi

Multimodal Function Optimisation (optimization, genetic algorithm, ga)

Fit_fun_val=fit_fun(v)

[w]=JGAopt(w0,pop_size,Kga_fin,Max_error)

image thumbnail

updated 4 years ago

(another) JSON Parser by François Glineur

François Glineur

Parses JSON strings into structures and cell arrays. (json, parser, javascript)

parse_json(string)

image thumbnail

updated 2 months ago

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

Adi Navve

v2struct packs and unpacks variables to and from structures with enhanced functionality. (function inputs, struct2vars, pack)

v2struct

v2structDemo1()

v2structDemo2()

image thumbnail

updated 3 years ago

FilterM by Jan Simon

Jan Simon

A faster FILTER and FILTFILT: Speedup factor 2.5 to 25 (signal processing, cmex, filter)

FiltFiltM(b, a, X, Dim)

FilterM(b, a, X, Z, Dim, Reverse)

uTest_FiltFiltM(doSpeed)

image thumbnail

updated 3 months ago

Chicken Swarm Optimization Algorithm (demo) by Xian-Bing Meng

Xian-Bing Meng

This is a new bio-inspired algorithm Chicken Swarm Optimization, proposed by Xian-bing(2014) (mathematics, optimization, matlab)

CSO.m

image thumbnail

updated almost 3 years ago

struct2File by Ivar Eskerud Smith

Ivar Eskerud Smith

Print a struct to file. (struct, print, file)

struct2File( s, fileName, varargin )

image thumbnail

updated 1 year ago

Progress bar for matlab loops (incl. parfor) by Stefan

Stefan

A progress bar that shows what percentage of a loop has finished. Based on parfor_progress. (loop, progress, bar)

ProgressBar

image thumbnail

updated 7 days ago

Read TIFF stacks into Matlab fast, with lazy loading by Dylan Muir

Dylan Muir

Read a TIFF stack as a memory-mapped tensor. Handles a large range of internal TIFF formats. (tiff, tif, image manipulation)

tiffread29_header(filename)

tiffread29_readimage(TIF, HEADER, vnFrames)

TIFFStack

image thumbnail

updated 1 month ago

CAD APPS by Larry Silverberg

Larry Silverberg

Computer Aided Design (CAD) and Exploration Applications (APPS) (structures, design, truss)

CADApps

CADAPP_MESH2_VER6(node,member,mmat,nmat,load,bound, z0,de...

adapt_scale(value, unitType, system)

image thumbnail

updated almost 2 years ago

Simple Stock Ticker by David

David

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

Simple Stock Ticker

simpleStockTicker

image thumbnail

updated 1 year ago

Example files for "Programming with MATLAB" Webinar by Jiro Doke

Jiro Doke

Example files for "Programming with MATLAB" Webinar, first delivered October 3, 2013. (programming, mathworks, webinar)

Automated Wind Turbine Data Analysis

Wind Turbine Data Analysis

WindAnalysisFcn.m

image thumbnail

updated 9 years ago

PDFPLOT by Alex Bar-Guy

Alex Bar-Guy

PDFPLOT displays a histogram of the empirical probability density function (PDF) of the input data. (statistics, probability, pdf)

image thumbnail

updated almost 9 years ago

grep: a pedestrian, very fast grep utility by us

us

a unix-like, very fast grep utility to find strings(s) in files of any type (path, directories, files)

fgrepdem

[pout,p]=grep(varargin)

image thumbnail

updated almost 4 years ago

MATLAB Goto Statement by Husam Aldahiyat

Husam Aldahiyat

The one and only. (goto, jump, jmp)

Example14

Example15

Example3

image thumbnail

updated 4 years ago

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

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 5 years ago

MatPlanWDM v0.5 by Pablo Pavon Mariño

Pablo Pavon Mariño

Educational network planning tool for the RWA problem in WDM networks (MILP and heuristic based) (optimization, network planning and ..., optical networks)

...

Dynamic(varargin)

HPSR2001_minTransceivers.m

image thumbnail

updated 7 years ago

Data scaling by Ani

Ani

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

image thumbnail

updated 1 year ago

Unit_Commitment by KATHIM Alrifai

KATHIM Alrifai

Optimal Loading for a Power Station (Unit Commitment) (optimization, measurement, control design)

image thumbnail

updated almost 6 years ago

WriteToVTK by Tim

Tim

Write 3D matrices to VTK files viewable with Paraview. (vtk, paraview, visualisation)

image thumbnail

updated 3 years ago

Simple example of genetic algorithm for optimization problems by Andrea Cirillo

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 9 years ago

naninterp by E. Rodriguez

E. Rodriguez

One dimensional Interpolation over NaNs. (matrices, nan, nans)

naninterp(X)

image thumbnail

updated almost 2 years ago

tridiag.m by Mark Holmes

Mark Holmes

tridiagonal matrix equation solver (Thomas algorithm) (mathematics, matrix)

tridiag( a, b, c, f )

image thumbnail

updated 4 years ago

Multiple matrix multiplications, with array expansion enabled by Paolo de Leva

Paolo de Leva

Multiplying matrices, vectors, or scalars contained in two N-D arrays, with array expansion enabled. (linear algebra, matrix, vector)

arraylab13(a,b,d1,d2)

arraylab131(a,b,d1,d2)

arraylab132(a,b,d1,d2)

image thumbnail

updated almost 4 years ago

Shuffle by Jan Simon

Jan Simon

Random permutation of array elements, C-Mex: much faster than RANDPERM (statistics, vector, mix)

Shuffle(Arg1, Arg2, Arg3)

uTest_Shuffle(doSpeed, doBias)

image thumbnail

updated 4 days ago

2 Dimensional Optimization using a Continuous Genetic Algorithm by Hashem Rizk

Hashem Rizk

Function Optimization using a Continuous Genetic Algorithm (gentic, optimization, gui)

GeneticAlgorithmOptimizationGUI(varargin)

image thumbnail

updated 8 years ago

read_kml by Amy Farris

Amy Farris

Reads a Google Earth .kml file into Matlab (google earth, kml, read_kml)

image thumbnail

updated 4 years ago

structfind by Dirk-Jan Kroon

Dirk-Jan Kroon

Search for a value, cell or string inside a Matlab struct (structfind, struct, find)

index=structfind(a,field,value)

image thumbnail

updated almost 8 years ago

Draw a circle in a matrix / image by Peter Bone

Peter Bone

Draw a circle in a 2D matrix using the integer midpoint circle algorithm (draw, circle, 2d)

image thumbnail

updated 1 month ago

Numeric to English Words by Stephen Cobeldick

Stephen Cobeldick

Convert a numeric scalar to a string giving the English name of the number value (GB/US). (dialect, words, number names)

num2words(num,opts,varargin)

num2words_rat(num,opts,tol)

num2words_bbc.m

Contact us