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

Support Vector Regression by Ronnie Clark

A MATLAB implementation of Support Vector Regression (SVR). (regression, nonlinear, machine learning)

svr(xdata,ydata,x,alpha, b, c, epsilon)

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

Simple example of PSO algorithm by Andrea Cirillo

Matlab function to find the minimum of a objective function with the PSO Algorithm (optimization, mathematics, pso)

[p_min, f_min, iter]=pso(func, numInd, range, n_var, tole...

image thumbnail

updated 9 years ago

Plot 2D/3D Vector with Arrow by Rentian Xiong

This function plots a line vector with arrow head. (2d, 3d, vector)

vectarrow(p0,p1)

image thumbnail

updated 5 years ago

Writing Fast MATLAB Code by Pascal Getreuer

Speed up your project with this collection of techniques. (whitepaper, article, paper)

image thumbnail

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

Experiments with MATLAB by Cleve Moler

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

image thumbnail

updated almost 4 years ago

Image Error Measurements by Michael Chan

Measures the differences between 2 images, and measurement of image quality. (image processing, fidelity, quality)

...

E=eme(X,M,L);

PSNR(A,B)

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

JPEG Compression by Ohad Gal

An example for jpeg compression and the restoration. (compression, jpeg, function)

jpeg

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

Unit_Commitment by KATHIM Alrifai

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

image thumbnail

updated 17 years ago

routh.m by Edmundo Rivera-Santos

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

RA=routh(poli,epsilon);

image thumbnail

updated 2 years ago

Newton's method done right by Andrew Knyazev

Newton's method for solving systems of nonlinear equations, including nonsquare and inconsistent (mathematics, physics, modeling)

Newton(X,F,X0,varargin)

NewtonDemoRunMe.m

image thumbnail

updated 8 days ago

Bytestream Save Toolbox by Jan Berling

Ultrafast saving of workspace variables as bytestreams. Especially useful for big cells and structs. (save, bytestream, cell arrays)

InBase=fnBaseExist(var1)

cd_ifPathIsValid(varargin)

getCaseSensitiveFilename( pathAndVarnameDotMat )

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

imagescnan.m v2.1 (Aug 2009) by Carlos Adrian Vargas Aguilera

Same as IMAGESC but ignores NaNs. (specialized, plotting, imagesc)

imagescnan(varargin)

image thumbnail

updated 6 years ago

Tutorial: C mex matrix demo by Nick Clark

Index matrix in C like you would do in MATLAB! (optimization, array, vectorize)

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

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

smooth2 by Kelly Hilands

Smooths the data in a 2D matrix with a user-defined resolution. (approximation, interpolation, 2d)

smooth2.m

image thumbnail

updated 2 years ago

Cofactor Matrix Generator by Angelica Ochoa

Generates a matrix of cofactor values for an M-by-N matrix. (mathematics, statistics, linear algebra)

cof=cof(a);

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

image processing-zooming an image using Bilinear interpolation by Dimuthu Senanayaka

Bi linear interpolation method has been used here for zooming images by a positive integer factor. (image processing, mathematics, matrix)

bilinear_zoom(file,fac)

image thumbnail

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

nancumsum by Brett Shoelson

Compute the cumulative sum of matrices, specifying the treatment of NaNs. (nan, cumulative, sum)

B=nancumsum(A,dim,nmode)

image thumbnail

updated 2 years ago

Beam Propagation Method for advancing gaussian beam in a profiled medium by Ido

Basic GUI for Beam Propagation Method. (gui, mathematics, simulation)

Beam Propagation Method for advancing gaussian beam

Beam_Propagation_Method_GUI ( varargin )

image thumbnail

updated 1 month ago

discretefouriertransform.m by NILAKANTHA MEHER

Discrete Fourier transform (general, search, application)

X=discretefouriertransform(Data,timestep)

image thumbnail

updated 5 years ago

MatPlanWDM v0.5 by Pablo Pavon Mariño

Educational network planning tool for the RWA problem in WDM networks (MILP and heuristic based) (optimization, network planning and ..., optical networks)

...

Dynamic(varargin)

HPSR2001_minTransceivers.m

image thumbnail

updated 2 years ago

Fisher Matrix Toolbox (Fisher4Cast ) by Yabebal Fantaye

General Fisher Matrix Toolbox and GUI (statistics, probability, fisher4cast)

Cooray_et_al_2004

EXT_FF_Blake_etal2005_Input

EXT_FF_Blake_etal2005_Main(Input_survey)

image thumbnail

updated almost 14 years ago

Koch.m by Salman Durrani

A function which plots the 'Koch curve' fractal. (fractals, koch curve fractal, mathematics)

[]=koch(n)

image thumbnail

updated 4 years ago

Newton-Raphson Method for 2 variables by Jesus Hernandez

Newton method for non-linear system of 2 variables (also solves linear system) (numerical linear alge..., mathematics, matrix)

newton2v2.m

image thumbnail

updated almost 4 years ago

Accelerating Finite Element Analysis (FEA) in MATLAB by Vaishali Shrivastava

Accelerate computationally intensive part of FEA by using Parallel computing. (mathematics, physics, parallel computing)

checkgeometry(node,edge,face,hdata)

circumcircle(p,t)

computeMForcesfromV(nodes, edges, triangles, potential, g...

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

DGradient by Jan Simon

Gradient of arrays as fast C-Mex (derivative, gradient, array)

DGradient(X, Dim, Spacing, Method)

uTest_DGradient(doSpeed)

image thumbnail

updated 11 months ago

Locally Adaptive Kernel Density Estimation by Hideaki Shimazaki

Kernel density estimation with bandwidths locally adapted to data. (statistics, bandwidth, kernel)

sshist(x,N)

sskernel(x,tin,W)

ssvkernel(x,tin)

image thumbnail

updated 4 years ago

Gradient from Neural Network by Alan Jennings

Function that takes a NN and creates a new NN that gives the gradient. (neural networks, function, gradient)

NN_DerivativeValidate

NN_GradientFunction(net)

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 almost 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 3 months 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 1 year ago

Find Image Extrema by Tristan Ursell

Find local maxima, local minima, saddle points, and flat regions in an image. (image, maximum, maxima)

[x,y,z,c]=imextrema(im1,varargin)

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 )

Contact us