image thumbnail

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

JPEG Compression by Ohad Gal

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

jpeg

image thumbnail

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

Writing Fast MATLAB Code by Pascal Getreuer

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

image thumbnail

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

Experiments with MATLAB by Cleve Moler

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

image thumbnail

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

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

Unit_Commitment by KATHIM Alrifai

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

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

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

Steepest descent method by Bapi Chatterjee

It solves an optimization problem by steepest descent method. (optimization, finance, steepest descent)

steepestdescent.m

image thumbnail

updated 2 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 22 days ago

xyimagesc.m by Anthony Bathgate

Same as imagesc but works when X and Y are not evenly spaced. (image, imagesc, imagescnan)

xyimagesc( X, Y, C, varargin )

image thumbnail

updated 3 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 11 months 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 13 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 almost 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

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

Gaussian Pyramid by Pranam Janney

Generates a gaussian pyramid for the given input image (image processing, mathematics, data import)

Gscale(img,levels,gsize,sigma);

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 )

image thumbnail

updated almost 11 years ago

Gamma by Paul Godfrey

Compute a very accurate Gamma function over the entire complex plane. (complex, gamma, function)

gamma(z)

image thumbnail

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

Multiple Variable Traveling Salesmen Problem - Genetic Algorithm by Joseph Kirk

Finds a near-optimal solution to a variation of the MTSP with variable number of salesmen using a GA (optimization, multiple traveling sa..., mtsp)

mtspv_ga(xy,dmat,minTour,popSize,numIter,showProg,showRes...

image thumbnail

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

Speeding Up Optimization Problems with Parallel Computing by Stuart Kozola

Files from the webinar: Speeding up optimization problems with parallel computing (aerospace, automotive, demo)

Electron Problem Optimization

First Order Reliability Method using a Simulink Flutter M...

computebestportfolioPCT(expRet,expCov,portSize,targetRet)

image thumbnail

updated almost 2 years ago

Gabor function by Niru Maheswaranathan

Generates a 2D spatial Gabor function. Useful for generating model simple cell receptive fields. (gabor, function, image processing)

gabor(varargin)

Contact us