image thumbnail

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

MATLAB Style Guidelines 2.0 by Richard Johnson

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

image thumbnail

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

Numerical Computing with MATLAB by Cleve Moler

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

image thumbnail

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

Variable Precision Integer Arithmetic by John D'Errico

Arithmetic with integers of fully arbitrary size. Arrays and vectors of vpi numbers are supported. (finite field, integer, biginteger)

demo_vpi

base2vpi(B,base)

bin2vpi(B)

image thumbnail

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

struct2csv by James Slegers

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

struct2csv(s,fn)

image thumbnail

updated 2 years ago

Experiments with MATLAB by Cleve Moler

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

image thumbnail

updated 3 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 4 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 28 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 14 days ago

CAD APPS by 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 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 11 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

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

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

Unit_Commitment by KATHIM Alrifai

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

image thumbnail

updated 11 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 28 days ago

Finite Element Triangular Mesh Generator by Kehinde OROLU

This function generates triangular mesh for a rectangular shape structure for FEM analysis (mesh, finite element analys..., matrix)

femTriangularMeshGenerator(Lx,Ly,Nx,NE)

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

struct2File by Ivar Eskerud Smith

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

struct2File( s, fileName, varargin )

image thumbnail

updated almost 3 years ago

Connect 4 - A Game by Humayun Kathuria

Good game for wasting one’s time. A very basic piece of code. (matrix, game)

connect4()

image thumbnail

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

Object oriented program demo: animated traffic lights on road intersection 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 11 months ago

Compressed Row Storage (CRS) Successive Over-Relaxation (SOR) Method by Cheuk

Function uses Successive Over-Relaxation (SOR) method to solve a linear system in CRS format (sor, successive, over)

CRS_SOR(CRS, b, x, epsilon, w)

image thumbnail

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

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

struct2table by Karl

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

struct2table.m

image thumbnail

updated 28 days ago

plot_subroutines by Christopher Pedersen

plots the subroutines in a function, and their dependencies on each other (code analysis, function, code)

plot_graph(names,from,to,varargin)

plot_subroutines(foo,varargin)

image thumbnail

updated 8 months ago

Heat Exchanger Solver by Seyyed Ali

Calculating outlet temperatures of a Heat Exchanger using Epsilon-NTU method (boiler, boiling, condense)

[T_hot_out,T_cold_out]=HeatExchanger(m_dot_hot,c_p_hot,T_...

epsilon=effectiveness(NTU,C_r,HE_Type,N)

Test.m

image thumbnail

updated 2 years ago

CELP codec by Sourav Mondal

This is a code to demonstrate CELP codecs of bitrate 9.6kbps and 16kbps. (celp, audio codec, lpc)

celp16k(x,N,L,M,c,cb,Pidx)

celp9600(x,N,L,M,c,cb,Pidx)

celpana(x,L,M,c,cb,Pidx,bbuf,ebuf,Zf,Zw)

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

piecewise cubic interpolation by Orlando Rodríguez

Code to interpolate function values and corresponding derivatives. (approximation, interpolation, derivatives)

pcinterp( x, y, xi, stype )

image thumbnail

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

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

Natural-Order Filename Sort by Stephen Cobeldick

Natural-order sort of filenames/fullpaths, with customizable numeric format. (sort, natural order, string)

natsortfiles(X,varargin)

Contact us