image thumbnail

updated 4 years ago

Get HTML Table Data into MATLAB by Jeremy Barry

Jeremy Barry (view profile)

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

getTableFromWeb(varargin)

getTableDataScript.m

image thumbnail

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

Random Vectors with Fixed Sum by Roger Stafford

Roger Stafford (view profile)

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

struct2xml by Wouter Falkena

Wouter Falkena (view profile)

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

struct2xml( s, varargin )

image thumbnail

updated 3 years ago

FilterM by Jan Simon

Jan Simon (view profile)

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

Kalman Filter in Matlab (Tutorial) by Rao 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 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 16 days ago

For-Each by Jeremy Hughes

Tools for simplifying for-loops. Customizable loop iteration. (loop, iterator, generator)

each(A)

each(C)

each.iterators.MaxIterations()

image thumbnail

updated almost 2 years ago

STRJOIN by Kota Yamaguchi

Kota Yamaguchi (view profile)

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

strjoin(input, separator)

image thumbnail

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

Bayesian Linear Regression by 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 almost 10 years ago

cell2csv by Rob Kohr

Rob Kohr (view profile)

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

image thumbnail

updated 5 years ago

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

Dirk-Jan Kroon (view profile)

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

grep: a pedestrian, very fast grep utility by us

us (view profile)

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

Data encoding: AMI, NRZ, RZ, Polar, Bipolar, Manchester... by Diego Barragán

Diego Barragán (view profile)

Functions that simulate data encoding (digital baseband modulation). (coding theory, information theory, functions)

AMINRZ.m

AMIRZ.m

BRZ.m

image thumbnail

updated almost 2 years ago

tridiag.m by Mark Holmes

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

tridiag( a, b, c, f )

image thumbnail

updated 1 year ago

Gaussian Elimination with Pivoting Method by Cheuk

Cheuk (view profile)

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

GAUSS_ELIM(A, b)

image thumbnail

updated 10 years ago

xyerrorbar by 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

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

Worst-Case Propagation of Uncertainty by Brad Ridder

Estimates the propagated uncertainty for a function, at a given point, with given uncertainties. (error, uncertainty, propagation)

colebrook_solve(x)

worstcase(f,x,uncertainties)

worstcase_colebrook_example

image thumbnail

updated 8 years ago

read_kml by Amy Farris

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

image thumbnail

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

structfind by Dirk-Jan Kroon

Dirk-Jan Kroon (view profile)

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

index=structfind(a,field,value)

image thumbnail

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

readtext by Peder Axensten

Peder Axensten (view profile)

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

routh.m by Edmundo Rivera-Santos

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

image thumbnail

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

Demo files for "Parallel Computing with MATLAB on Multicore Desktops and GPUs" Webinar by Jiro Doke

Jiro Doke (view profile)

Demo files for "Parallel Computing with MATLAB on Multicore Desktops and GPUs" Webinar (May 4, 2011) (parallel, gpu, cpu)

Demo script for Cell Tower Optimization Problem

Parameter Sweep of ODEs

Solving 2nd Order Wave Equation on the GPU Using Spectral...

image thumbnail

updated 9 years ago

naninterp by E. Rodriguez

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

naninterp(X)

image thumbnail

updated 5 months ago

Propagation of Uncertainty by Brad Ridder

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

PropError(f,varlist,vals,errs)

image thumbnail

updated 4 years ago

Truncated Gaussian by Bruno Luong

Bruno Luong (view profile)

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

TruncatedGaussian(sigma, range, varargin)

image thumbnail

updated almost 3 years ago

struct2File by Ivar Eskerud Smith

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

struct2File( s, fileName, varargin )

image thumbnail

updated 11 years ago

Find Peak Value by Geng Jun

Geng Jun (view profile)

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

fpeak.m

ma.m

image thumbnail

updated 15 years ago

padadd by Dave Johnson

This is a function that concatenates data column arrays of possibly dissimilar sizes. (matrices, tools, data arrays)

image thumbnail

updated 5 years ago

Unique Rows for a cell array by Jim Hokanson

Jim Hokanson (view profile)

Find unique rows of a cell array containing columns with strings or scalars, or N-D matrices (cell array, unique, rows)

uniqueRowsCA(iCA,TREAT_NAN_EQUAL,FIRST_LAST)

image thumbnail

updated 4 years ago

MATLAB Goto Statement by Husam Aldahiyat

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

Example14

Example15

Example3

image thumbnail

updated 1 year ago

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

Jiro Doke (view profile)

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

Structure display by Thomas Deneux

Thomas Deneux (view profile)

simple recursive display of a structure content in Matlab (structures, cell arrays, display recursive)

fn_structdisp(Xname)

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

Sorting a Cell Array by Jeff Jackson

Jeff Jackson (view profile)

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

sortcell(X, DIM)

image thumbnail

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

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

Viliam (view profile)

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

foto

image thumbnail

updated 9 years ago

PDFPLOT by Alex Bar-Guy

Alex Bar-Guy (view profile)

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

image thumbnail

updated 1 year ago

Worker Object Wrapper by Parallel Computing Team

Simplifies managing resources such as large data within PARFOR loops and SPMD blocks (parallel computing, parfor, spmd)

WorkerObjWrapper

image thumbnail

updated 2 years ago

kml2struct by James Slegers

James Slegers (view profile)

Import a .kml file as a series of shapefile structs. Like kml_shapefile, but more stable. (kml_shapefile, kml, shapefile)

kml2struct(kmlFile)

Contact us