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)

image thumbnail

updated 2 years ago

struct2xml by Wouter Falkena

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

struct2xml( s, varargin )

image thumbnail

updated 8 months ago

Bound Values of an array by Pramit Biswas

Check whether value of the array within specified range or not and change accordingly (array, minimum, maximum)

MinMaxCheck( minimum, maximum, A2comp )

image thumbnail

updated almost 10 years ago

M-file Header Template by 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 11 days ago

plot_subroutines by Christopher Pedersen

graphviz-like plot of the subroutines in a function, and their dependencies (code analysis, function, code)

plot_graph(names,deps,varargin)

plot_subroutines(foo,varargin)

image thumbnail

updated 12 months ago

STRJOIN by Kota Yamaguchi

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

strjoin(input, separator)

image thumbnail

updated 6 months 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 4 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

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

(another) JSON Parser by François Glineur

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

parse_json(string)

image thumbnail

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

xyerrorbar by Nils Sjöberg

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

[]=xyerrorbar(x,y,errx,erry,s)

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 8 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 1 month 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 2 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 almost 10 years ago

Picture Matching Function by Fahd Ahmad Abbasi

Matches two pictures given as arguments. (image analysis, matching, picture)

ait_picmatch(pic1,pic2)

image thumbnail

updated 11 years ago

save2word by Suresh Joel

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

save2word(filespec,prnopt)

image thumbnail

updated 4 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 2 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 3 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 9 months ago

Unit_Commitment by KATHIM Alrifai

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

image thumbnail

updated 1 month ago

3D colored bar plot by Johannes

3D bar plot with arbitrary coloring (bar plot, 3d, color)

bar3c(Z,x,y,w,C)

image thumbnail

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

image thumbnail

updated 3 years ago

MATLAB Goto Statement by Husam Aldahiyat

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

Example14

Example15

Example3

image thumbnail

updated 2 years ago

Random Numbers from a Discrete Distribution by Tristan Ursell

Simple algorithm to generate random numbers from a user-defined discrete probability distribution. (random, number, variable)

gendist(P,N,M,varargin)

image thumbnail

updated 10 days ago

plot_depfun by Christopher Pedersen

plots a graph of the dependencies of a function (code, function, depfun)

plot_depfun(foo,varargin)

plot_graph(names,deps,varargin)

image thumbnail

updated 7 years ago

read_kml by Amy Farris

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

read_kml(fileName)

image thumbnail

updated 10 months ago

Gaussian Mixture Model by Ravi Shankar

The code finds out the parameters of a gaussian mixture model by Expectation-Maximization Algorithm. (data mining, data import, data export)

GMmodel(x,no_gaus_distr)

kmclust(x,no_clust)

image thumbnail

updated 4 years ago

Propagation of Uncertainty by Brad Ridder

Returns the propagated uncertainty in a function F imparted to it from its variables (error, uncertainty, propagation)

PropError(f,varlist,vals,errs)

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)

MidpointCircle(i, radius, xc, yc, value)

image thumbnail

updated 3 years ago

Truncated Gaussian by Bruno Luong

Generate a pseudo-random vector X drawn from the truncated Gaussian distribution (gaussian, normal, random)

TruncatedGaussian(sigma, range, varargin)

image thumbnail

updated 9 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 8 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 3 days ago

Towers of Hanoi by Brian Moore

A MATLAB GUI for the popular Towers of Hanoi puzzle game with manual or automatic solution. (towers of hanoi, recursion, gui)

TowersOfHanoi

image thumbnail

updated 7 months ago

Snip.m Snip elements out of vectors/matrices by Nicolas

Solves problems s.a. 'remove all nan' from a vector, 'get rid of 14th row of matrix' with low effort (basic function, matrix manipulation, easy)

[out]=snip(in,arg1,varargin)

image thumbnail

updated 25 days ago

Regression with Gradient Descent by Shujaat Khan

Regression with Gradient Descent; A coefficient finding technique for the desired system model (regression, descent gradient, machine learning)

Arbitary.m

Exp_Pred.m

Linear_Pred.m

image thumbnail

updated almost 6 years ago

Genetic Algorithm by 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 1 year ago

tridiag.m by Mark Holmes

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

tridiag( a, b, c, f )

image thumbnail

updated almost 7 years ago

Zigzag Scan by Alexey Sokolov

Straight and inverse zigzag scan for matrices of any sizes (matrices, zigzag, scan)

izigzag(in, vmax, hmax)

zigzag(in)

image thumbnail

updated 3 years ago

structfind by 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 23 days ago

Access TIFF / TIF stacks - 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)

TIFFStack

Contact us