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

JPEG Compression by Ohad Gal

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

jpeg

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

Numerical Computing with MATLAB by Cleve Moler

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

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

Experiments with MATLAB by Cleve Moler

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

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

image resampling by Omer Demirkaya

This is a simple function that resamples the image at a different pixel size (image processing, function, pixel)

imresample(oldpixsize,img,newpixsize,intmethod)

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

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 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 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 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 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 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 almost 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 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 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 9 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 almost 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 28 days ago

XSum by Jan Simon

Fast Sum with error compensation (sum, error, compensated)

InstallMex(SourceFile, varargin)

XSum(varargin)

image thumbnail

updated 18 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 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 4 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 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

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

Nonnegative Matrix and Tensor Factorization (NMF, NTF) with any beta-divergence by Antoine Liutkus

very simple to use implementation of the NMF/NTF model (nmf, ntf, nonnegative)

betaNTF(V,K,varargin)

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

BlockMean by Jan Simon

Mean of rectangular submatrices, fast C-Mex (no running mean) (mean, matrix, array)

BlockMean(X, V, W)

uTest_BlockMean(doSpeed)

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

Contact us