image thumbnail

updated 2 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)

image thumbnail

updated 12 months ago

CATSTRUCT by Jos (10584)

Concatenate/merge structures (v4.0, dec 2013). (structures, cell arrays, structure)

catstruct(varargin)

image thumbnail

updated 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 3 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)

image thumbnail

updated 6 days 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. (function inputs, struct2vars, pack)

v2struct

v2structDemo1()

v2structDemo2()

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

Bisection's method by Andrea Cirillo

It's a matlab function that finds a regular real function's zero with the bisection's method. (optimization, mathematics, bisection)

p_min=bisection(func,int,iter,tol_x,tol_f)

image thumbnail

updated almost 11 years ago

Find Peak Value by Geng Jun

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

fpeak.m

ma.m

image thumbnail

updated 27 days ago

Monte Carlo simulation example using MATLAB (with comments) by Reza Rahemi

A simple Monte Carlo simulation example with detailed comments (simulation, random, monte carlo)

MonteCarlo_CNTower.m

image thumbnail

updated almost 3 years 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 (whitepaper, article, paper)

[BER, errors]=btint(varargin)

arg=getArg(argPosition,vararg_in,default)

rsrc=setRSRCpulseShapingFilter(rsrc, rollOff)

image thumbnail

updated 1 month ago

Chicken Swarm Optimization Algorithm (demo) by 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 3 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 6 years ago

Sorting a Cell Array by Jeff Jackson

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

sortcell(X, DIM)

image thumbnail

updated almost 4 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 5 years ago

Bias Field Corrected Fuzzy C-Means by 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 almost 3 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 4 years ago

Nested sort of structure arrays by 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 1 month ago

toPPT by Jens Richter

toPPT is a powerful tool for generating powerpoint presentations programmatically defined in matlab. (powerpoint, microsoft, windows)

toPPT-1.7c:

print2eps.m

rgb.m

image thumbnail

updated almost 9 years ago

Alamouti Space-Time Code by Massimo Allegritti

A function that simulate the Alamouti Space-Time code. (wireless, alamouti, space)

H=rey(Nt,Nr)

ber_ml=Alamoudi(snr,soglia);

image thumbnail

updated 10 years ago

xyerrorbar by Nils Sjöberg

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

image thumbnail

updated almost 8 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 8 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 7 years ago

Draw a circle in a matrix / image by Peter Bone

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

image thumbnail

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

image thumbnail

updated 1 year ago

STRJOIN by Kota Yamaguchi

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

strjoin(input, separator)

image thumbnail

updated 1 year ago

Example files for "Programming with MATLAB" Webinar by 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 almost 9 years ago

Random Vectors with Fixed Sum by 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 8 years ago

read_kml by Amy Farris

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

image thumbnail

updated 10 months ago

Progress bar for matlab loops (incl. parfor) by 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 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 almost 4 years ago

MATLAB Goto Statement by Husam Aldahiyat

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

Example14

Example15

Example3

image thumbnail

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

Laplacian in 1D, 2D, or 3D by Andrew Knyazev

Sparse (1-3)D Laplacian on a rectangular grid with exact eigenpairs. (matrix, mathematics, laplacian)

laplacian(varargin)

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

Unit_Commitment by KATHIM Alrifai

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

image thumbnail

updated 3 years ago

FilterM by 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 almost 10 years ago

Erdos-Renyi Random Graph by Pablo Blinder

Random graph generation. (random, graphs, graph theory)

P=permPairs(N)

[G]=erdosRenyi(nv,p,Kreg)

[x,y]=getNodeCoordinates(nv)

image thumbnail

updated 1 month ago

vtkwrite( filename,dataType,varargin ) by Joe Yeh

The function exports multiple 3D vector and scalar field and call Paraview for display (paraview, vector, 3d)

vtkwrite( filename,dataType,varargin )

image thumbnail

updated 10 years ago

Fast Pentadiagonal System Solver by Greg von Winckel

Solves symmetric and asymmetric pentadiagonal systems. (linear algebra, pentadiagonal, 5band)

x=pentsolve(A,b)

image thumbnail

updated 1 year ago

K means clustering for Image Compression by Vinay Kumar Tadepalli

K-means clustering is a popular vector quantization method for data compression. (image processing, simulation, demo)

Kmeans_Pre_Post.m

kmeans_clustering.m

Image_kmeans_main.m

image thumbnail

updated 10 months ago

Gaussian Elimination with Pivoting Method by Cheuk

Function uses Gauss elimination with pivoting to solve a linear system in standard format. (linear, algebra, gaussian)

GAUSS_ELIM(A, b)

image thumbnail

updated 12 days ago

vector3 by Paul Kassebaum

3-D vector plot. (3d, vector, field)

vector3(x,y,z,u,v,w,varargin)

image thumbnail

updated 9 months ago

deflection of a cantilever beam by Abhilash Harpale

calculates the deflection, bending moment and shear force for a cantilever beam. (solid mechanics, structures, civil)

deflection=beam_deflection(load,ei,l,dl)

image thumbnail

updated 8 years ago

grep: a pedestrian, very fast grep utility by 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 1 year ago

Fit 2D Gaussian with Optimization Toolbox by Nathan Orloff

Fit a 2D rotated gaussian. http://en.wikipedia.org/wiki/Gaussian_function (image processing, optimization, signal processing)

fmgaussfit(xx,yy,zz)

image thumbnail

updated 17 days ago

Read TIFF / TIF stacks efficiently, with lazy loading by 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

ellipseMatrix(y0, x0, a, b, theta, im, c1, c2, pInterp) by Nicolae Cindea

Drawing an ellipse into a matrix image. (ellipse, image generation, draw)

ellipseMatrix(y0, x0, a, b, theta, im, c1, c2, pInterp)

test.m

image thumbnail

updated 3 years ago

LSMR: An iterative algorithm for least-squares problems by David

Official successor to the LSQR algorithm, developed by David Fong and Michael Saunders. (matrix, sparse matrix, linear equation)

[x, istop, itn, normr, normAr, normA, condA, normx]...

lsmrtest( m,n,lambda,localSize )

image thumbnail

updated almost 3 years ago

struct2xml by Wouter Falkena

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

struct2xml( s, varargin )

Contact us