image thumbnail

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

Numerical Computing with MATLAB by Cleve Moler

Apps from Numerical Computing with MATLAB (mathematics, matrix, article)

image thumbnail

updated 1 year ago

struct2csv by James Slegers

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

struct2csv(s,fn)

image thumbnail

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

demo_vpi

base2vpi(B,base)

bin2vpi(B)

image thumbnail

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

MATLAB Style Guidelines 2.0 by Richard Johnson

An updated guide to preferred coding style. (article, conventions, documentation)

image thumbnail

updated almost 2 years ago

Experiments with MATLAB by Cleve Moler

Apps from Experiments with MATLAB (mathematics, matrix, article)

image thumbnail

updated 23 days ago

Particle Swarm Optimization (Vectorized Code) by Reza Ahmadzadeh

a simple implementation of Particle Swarm Optimization algorithm (PSO) (pso, particle swarm, swarm intelligence)

VPSO.m

image thumbnail

updated 10 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 12 months ago

Unit_Commitment by KATHIM Alrifai

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

image thumbnail

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

TIFFStack

image thumbnail

updated 10 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 less than a minute ago

Cell Array to CSV-file [improved cell2csv.m] by Jerry

Writes cell array content into a *.csv file. (cell arrays, array to file, array to text)

cell2csv(fileName, cellArray, separator, excelYear, decimal)

image thumbnail

updated 2 years ago

kml2struct by James Slegers

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

kml2struct(kmlFile)

image thumbnail

updated 2 years ago

struct2File by Ivar Eskerud Smith

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

struct2File( s, fileName, varargin )

image thumbnail

updated 2 years ago

Example using a MATLAB Class to control a GUI by Alex

This example shows how to use a Matlab class to control a gui. (class, gui, passing gui data)

standard_fig(varargin)

gui_class_example

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

Point cloud normal vector by Jered Wells

NORMND computes the vector normal to points in an N-D point cloud (eigenvector, eigenvalue, normal)

normnd(data,varargin)

image thumbnail

updated 10 days ago

circVBuf by Jens Henrik Göbbert

circular vector buffer (constant+fast performance, double buffered) (buffer, circular, vector)

circVBuf_speedtest(bufferSz, vectorLen, stepSize, appendT...

circVBuf

plot_circVBuf_speedtest.m

image thumbnail

updated 8 months ago

Printing a formatted table by Daniel Wirtz

Allows to display and print simple text tables in MatLab. Plain and LaTeX format supported. (table, string table, char table)

PrintTable

image thumbnail

updated 1 year ago

Image Noise Reduction by Local Statistics by Tristan Ursell

Reduce image noise by measuring local pixel statistics and remapping intensities. (image processing, image, noise)

[varargout]=relnoise(Iin,sz,sigma,varargin)

image thumbnail

updated 1 month ago

cspy.m by Hugo Gualdron

cspy: a color-coded version of sparse matrix viewer spy (spy, colormap, matrix)

cspy(varargin)

image thumbnail

updated 1 year ago

Random Search Algorithm by Reza Ahmadzadeh

Random search belongs to the fields of Stochastic Optimization and Global Optimization. (optimization, random, search)

RSA.m

RSA_visual.m

image thumbnail

updated 2 years ago

struct2table by Karl

displays a struct's contents in a clear way... (struct, table, display)

struct2table.m

image thumbnail

updated 2 years ago

Antenna Arrays in 3D by Amol Mahurkar

Produces radiation pattern for Broadside, Endfire, and Binomial antenna arrays in 3 dimensions (antenna, array, binomial)

Binomial_array_3D.m

Broadside_array_3D.m

Endfire_array_3D.m

image thumbnail

updated 6 months ago

Jacobian-Free Newton-Krylov (JFNK) method by Cheuk

Function uses JFNK to solve a system of non-linear equations (jacobianfree, newtonkrylov, jacobian)

JFNK(F, x0, epsilon, max_iter)

JV_APPROX(v, F, x)

image thumbnail

updated 10 days ago

Vectorized Multi-Dimensional Matrix Multiplication by Darin Koblick

Take Any N-D Matrix and Multiply it by another N-D Matrix Without a For-Loop (matrix, matricies, multiplication)

eDim(fND,fSeq)

fDim(ND,dim)

mntimes(x,y,xrowdim,xcoldim,yrowdim,ycoldim)

image thumbnail

updated 2 years ago

QPSK over Rayleigh fading Channel by Sourav Mondal

The BER of QPSK scheme over AWGN & Rayleigh fading channel. (communications, data export, data import)

Refresh(Received)

qpsk_rayl.m

image thumbnail

updated 4 months ago

Vehicle Network Toolbox Support Package for Vector CAN Devices by MathWorks Vehicle Network Toolbox Team

Stream CAN bus data into MATLAB and Simulink using Vector CAN Devices (vector)

image thumbnail

updated 1 year ago

PDFsampler by Pantelis Sopasakis

A simple and handy PDF (Probability Distribution Function) re-constructor and sampler. (rng, pdf, monte carlo)

PDFsampler

image thumbnail

updated 6 months ago

Phase Plots of Complex Functions by Elias Wegert

Routines for creating color representations of complex functions (phase plots) (complex functions, phase plot, domain coloring)

BrightenRGB(RGB,bright)

GUI_PhasePlot(hObject, ~)

PPDemo(cs)

image thumbnail

updated 2 years ago

Symmetric eigenvalue decomposition and the SVD by Yuji Nakatsukasa

Eigendecomposition of a symmetric matrix or the singular value decomposition of an arbitrary matrix (mathematics, matrix, eigenvalue)

qdwh(A,alpha,L,piv)

qdwheig(H,normH,minlen,NS)

qdwhsvd(A,a,b,minlen,NS);

image thumbnail

updated 11 months ago

Multidimensional matrix multiplication by Sandor Toth

The simple function performs fast matrix multiplication within multidimensional arrays. (matrix, multiplication, simple)

mmat(A,B,dim)

image thumbnail

updated 2 years ago

splitstring by Ivar Eskerud Smith

Split a string into a cell array by specifying a delimiter. (split, string, cellstring)

splitstring( str, varargin )

image thumbnail

updated 14 days ago

Matrix exponential times a vector by Peter Kandolf

Computes EXPM(tA)b, without explicitly computing the matrix exponential, by Leja interpolation. (mathematics, matrix, matrix exponential)

expleja (h, A, varargin)

image thumbnail

updated 9 months ago

Connect Randomly Ordered 2D Points into a Minimal Nearest-Neighbor Closed Contour by Tristan Ursell

Connects randomly ordered 2D points into a minimal nearest neighbor contour. (contour, nearest, neighbor)

[Xout,Yout,varargout]=points2contour(Xin,Yin,P,direction,...

image thumbnail

updated 3 days ago

Linear regression for multiple category data with different slopes for each by Soumya Banerjee

The function does OLS and RMA regression on data that is categorized into two different categories (aerospace, biotech, communications)

regress_plot_twocategories_allslope

image thumbnail

updated 1 year ago

Divergence-Curl Demo by Teja Muppirala

A simple, easy-to-use visualization tool for vector fields. ベクトル場の発散、回転を可視化表示します (teaching, divergence, vector)

image thumbnail

updated 1 year ago

Grid of points within a polygon by Sulimon Sattari

This function generates an array of points that lie within a given polygon (polygon, points, point)

polygrid( xv, yv, ppa)

image thumbnail

updated almost 2 years ago

Animated traffic lights on road intersection -- OOP (object oriented programming) demo by Bogumila & Zbigniew MROZEK

simple classes and superclass are used to arrange flexible object oriented programming environment (demo, gui, simulation)

map

tLamps % trafficLamp

trafficLamp

image thumbnail

updated 1 year ago

Save and load Matlab "projects" in editor by Kevin Bartlett

Saves and loads Matlab "projects" in editor (currently-open files, working directory, search path). (editor, project, programming)

matproj(varargin)

image thumbnail

updated 2 years ago

MATLAB Support Package for Finch Robot by Tom Gaudette

MATLAB connectivity code to a Finch Robot (robotics, programming, teaching)

Finch

finchComm

mFinch

image thumbnail

updated 2 years ago

Generate Random Numbers from a 2D Discrete Distribution by Tristan Ursell

Random numbers from any 2D discrete probability distribution, at any resolution. (discrete, distribution, generate)

[x0,y0]=pinky(Xin,Yin,dist_in,varargin)

Contact us