image thumbnail

updated 4 days ago

MINRES-QLP by Sou-Cheng

Computing min-length (pseudoinverse) solution to symmetric (possibly singular) Ax=b or min||Ax-b||. (singular, symmetric, hermitian linear syst...)

[x,flag,iter,Miter,QLPiter,relres,relAres,...

image thumbnail

updated 4 months ago

Find values in a vector or function by Adrian Lara-Quintanilla

For a function y=f(x), this script looks for all the "x" values for a desired value of "y" (y0). (mathematics, data exploration, time series)

varargout=findvalues(vector,yvalue)

image thumbnail

updated 4 months ago

March Madness Algorithm by Nathan Lorah

Need help deciding who will win this year in the tournament? This algorithm will help with that. (basketball, sports, march madness)

MarchMadness2Algorithm.m

image thumbnail

updated 5 months ago

Low Energy Adaptive Clustering Hierarchy protocol (LEACH) by Hossein Dehghan

Low Energy Adaptive Clustering Hierarchy (LEACH) cluster based routing protocol in WSN (algorithm, algorithmwsnrouting p...)

clusterOptimum(netArch, nodeArch, dBS)

createfigure(X1, Y1, Y2, Y3)

dissEnergyCH(clusterModel, roundArch)

image thumbnail

updated 5 months ago

An Approximation Solution for the Prize-Collecting Steiner Tree Problem by Fangzhou Chen

A function giving feasible(not optimal) solutions to the Prize-Collecting Steiner Tree Problem (algorithm, optimization, combinatorics)

FindTree(G, vp)

PCSTr(G, vp, r)

image thumbnail

updated 6 months ago

Vectorized Bisection Search by Sky Sartorius

Find x such that f(x) = target. Vectorization allows for some key advantages over FZERO. (bisection, search, root)

bisection(f,lb,ub,target,options)

image thumbnail

updated 8 months ago

Edit Distance Algorithm by Reza Ahmadzadeh

Edit Distance is a standard Dynamic Programming problem. (mathematics, search, dynamic programming)

EditDistance(string1,string2)

image thumbnail

updated 9 months ago

Random Search Algorithm by Reza Ahmadzadeh

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

RSA.m

RSA_visual.m

image thumbnail

updated 10 months ago

Stereo Matching by Wim Abbeloos

A GUI demonstrates an efficient stereo matching algorithm. (disparity, algorithm, computer vision)

Stereo Matching

polyfit(x,y,n)

stereomatch(imgleft, imgright, windowsize, disparity, spacc...

image thumbnail

updated 12 months ago

Bat algorithm (demo) by Xin-She Yang

This is a demo for Bat Algorithm, developed by Xin-She Yang (2010). (algorithm, optimization, metaheuristic)

[best,fmin,N_iter]=bat_algorithm(para)

image thumbnail

updated 12 months ago

k-means clustering algorithm by Craig

Performs one step of the k-means clustering algorithm (algorithm, images, average)

kmean(img,means)

Example.m

image thumbnail

updated 1 year ago

KTHVALUE (v2.1, jun 2012) by Jos (10584)

select the k-th smallest element in a (randomized) list (matrix, sort, select)

kthvalue(L,K)

image thumbnail

updated 1 year ago

AI for a game called chomp by Abhilash Harpale

this program uses the minimax algorithm for playing chomp.open the file create_tree for instrutions. (game, puzzle, chomp)

[output]=create_sub_tree(current_state,player,i,m,n)

output=next(current_state,j,m,n)

output=solve_tree(tree)

image thumbnail

updated 1 year ago

Multiresolution Gabor-like transforms by Kunal Chaudhury

Matlab implementation of the multiresolution Gabor filters in 1 and 2 dimensions. (gabor function, wavelet transform, fractional bsplines)

analysis(f, J, alpha, tau)

analysis(inImg, J, alpha, tau)

autocorr(M, alpha)

image thumbnail

updated 1 year ago

Video Sudoku Solver by Teja Muppirala

Solves a sudoku with a web camera and then displays it while tracking the original video feed. (algorithm, video processing, demo)

drawsudoku(M)

identifynumbers_fun(pts,Pnew,NT,IBW)

mysudokusolver(filename)

image thumbnail

updated 1 year ago

Confusion matrix / Matching matrix along with Precision, Sensitivity, Specificity and Model Accuracy by Avinash Uppuluri

CFMATRIX2 calculates the confusion matrix and related parameters for a classification algo. (statistics, probability, confusion matrix)

cfmatrix2(actual, predict, classlist, per, printout)

image thumbnail

updated 1 year ago

LMS Algorithm Implementation by Ansuman Mahapatra

LMS Algorithm Implementation (lms, least mean square, algorithm)

lms.m

image thumbnail

updated 1 year ago

Simple example of genetic algorithm for optimization problems by Andrea Cirillo

It is used to generate useful solutions to optimization and search problems. (algorithm, genetic, optimization)

[p_min, iter, f]=genetic_algorithm (func, numMaxInd, numF, ...

image thumbnail

updated 1 year ago

Red Black Tree by Hanan Kavitz

Matlab implementation of RedBlack tree (algorithm, redblack tree, data container)

Nodes.ColoredNode<Nodes.FullNode

Nodes.Colors

Nodes.FullNode<Nodes.Node

image thumbnail

updated 1 year ago

Connect Four by Mathias Benedek

The classic game connect four can be played on a 7x7 board against a computer-opponent at 3 levels. (minimax, algorithm, game)

connect4(player, nmvs, posval)

connect4_start

image thumbnail

updated 1 year ago

Improving the convergence of Nelder-Mead (and so fminsearch) by Emile Simon

This highlights a (common) trick to improve the convergence of NM, and a problem within fminsearch. (optimization, neldermead, restart)

nmsmax(fun, x, stopit, savit, varargin)

BenchmarkXSquared.m

image thumbnail

updated 2 years ago

Robust Sudoku Solver by Iskander Benhadj

Robust Sudoku solver is robust solver. (algorithm, difficult, excellent)

elimination (TAB,i,lon,permut_tab1)

solver

image thumbnail

updated 2 years ago

Vertical Handoff Algorithm for Heterogeneous Wireless Mobile Networks by Anshul Thakur

Simplistic implementation of Extended Vertical Handoff Decision Function (4g, algorithm, heterogenous networks)

code_modified()

image thumbnail

updated 2 years ago

Travel Guide (GridLess Based Djikstra Algorithm) by Krishna Lalith

Player need to Define Map & 2 Points to get Shortest Distance. (djikstra, algorithm, shortest)

Callback_Grid(handy,varargin)

TravelGuide(action)

[shortpath,flag]=ShortDist(S,D,Adj_Mat)

image thumbnail

updated 2 years ago

Travel Guide (Grid Based Djikstra Algorithm) by Krishna Lalith

Player need to Define Map & 2 Points to get Shortest Distance. (djikstra, algorithm, shortest)

Callback_Grid(handy,varargin)

TravelGuide(action)

[shortpath]=ShortDist(S,D,Adj_Mat)

image thumbnail

updated 2 years ago

Travel Guide (Points Based Djikstra Algorithm) by Krishna Lalith

Player need to Define 2 Points to get Shortest Distance Path. (djikstra, algorithm, shortest)

Callback_Grid(handy,varargin)

TravelGuide(action)

[shortpath,flag]=ShortDist(S,D,Adj_Mat)

image thumbnail

updated 2 years ago

Pattern search method: deterministic iterative zero order algorithm by Andrea Cirillo

It finds the relative minimum of a two variables function with the Pattern search method. (optimization, mathematics, deterministic)

pattern_search(f, p0, step_size, tolerance, N_it)

image thumbnail

updated 2 years ago

Improved Base Expansion Algorithm by Alexander Wallar

This is an improvement of my last base expansion algorithm (base, expansion, algorithm)

baseVecExpand(n,c,b)

image thumbnail

updated 2 years ago

Simple Sudoku Solver by Indraneel Biswas

This is a very basic sudoku solver. (sudoku, solve, solver)

A=d2a(D)

D=sudokuA(D)

D=sudoku_f3(D)

image thumbnail

updated almost 3 years ago

Optimization Algorith for Uncertain Nonlinear Dynamic System by Khairul Redwan

Dynamic Integrated System Optimization and Parameter Estimation (DISOPE) Technique (algorithm, robotics, disope)

[ u, x, p, cnv, ztrue]=disope( u0, A, B, Q, R, PHI, r1, r2...

fstar( x, u, option )

lstar( x, u , option )

image thumbnail

updated 3 years ago

Fly a 747 with MATLAB: Multiple Views in a GUI, Dynamic Lighting by Saurabh Mahapatra

Enhancements to the original 747 demo (3d, virtual, animation)

terrain_plane.m

image thumbnail

updated 3 years ago

A fast voxel traversal algorithm for ray tracing by Jesús P. Mena-Chalco

A fast and simple voxel traversal algorithm through a 3D space partition (uniform grid) (3dda, uniform, traversal)

amanatidesWooAlgorithm(origin, direction, grid3D, verbose)

rayBoxIntersection(origin, direction, vmin, vmax)

test.m

image thumbnail

updated 3 years ago

Puzzler: Supporting files by Doug Hull

Supporting files for a July 2009 puzzler from http://blog.mathworks.com/videos (puzzler, algorithm)

main

main

image thumbnail

updated 3 years ago

Coins by Giuseppe Cardillo

Is there an algorithm to use the max numbers of coins in your pocket? (tools, example, gui)

coins(varargin)

image thumbnail

updated 3 years ago

3D Crouzeix-Raviart mortar finite element method by Jan Valdman

Implementation of 3D Crouzeix-Raviart mortar finite element (mathematics, 3d, mortar)

M_CR=stima_massCR_3D(elements3,coordinates,element2faces)

[M_CR Z]=stima_gradgradCR_3D(elements3,coordinates,element2...

[b_volumeforces, volumes]=rhs_CR_3D(elements3, coordinates,...

image thumbnail

updated almost 4 years ago

Loop Subdivision by Jesús P. Mena-Chalco

A simple m file for the triangle mesh subdivision using the Loop's scheme. (loop sudbdivision, mesh subdivision, smooth scheme)

loopSubdivision(vertices, faces)

plotMesh(vertices, faces)

test.m

image thumbnail

updated almost 4 years ago

Puzzler: solution by Darren Rowland

Solver for the puzzler posted by Doug Hull July 09 http://blogs.mathworks.com/videos/ (algorithm, flood, puzzler)

main

image thumbnail

updated 4 years ago

Oil Paint Effect by Ahmed Hassan

This m file performs an Oil Paint effect on an input image. (image processing, mathematics, dip)

oil_paint.m

image thumbnail

updated 4 years ago

196 Algorithm + GUI Beta Version by Darin Koblick

Highly optimized c code and Matlab GUI to find any palindrome using the 196-algorithm (optimization, palindrome, palindromic)

palindrome(varargin)

image thumbnail

updated 4 years ago

Design Patterns for Integrating Simulink with Stateflow by Linda Webb

Engineers can integrate state machines and control logic designed in Stateflow and Simulink (whitepaper, article, paper)

image thumbnail

updated 4 years ago

Data Reduction Algorithm by Christian Schultes

Very fast/smart datareduction algorithm it uses only vector arithmetic. (data export, data import, optimization)

data_reduction_algorithm(raw_data, tolerance)

image thumbnail

updated 4 years ago

Ellipse Fit by Tal Hendel

Given a set of points (x, y) this function returns the best fit ellipse. (least sqaures, fit, ellipse)

ellipse_fit(x, y)

image thumbnail

updated 4 years ago

Fast Correlation between two vectors by Francesco Pozzi

fastcorrelation is a fast and numerically stable algorithm for computing the correlation (in C) (algorithm, vectors, correlation)

fastcorrelation(x, y)

slowcorrelation(x, y)

image thumbnail

updated 4 years ago

Satisfiability solver by Zhi Han

A satisfiability solver using the classical Davis-Putnam algorithm. (satisfiability, algorithm, discrete)

sat_cnf(cnffile, varargin)

satisfy(A)

example1.m

image thumbnail

updated 4 years ago

Harmony Element Algorithm by Yan Hong Cui

Harmony Element Algorithm A Graphycal User Interface (optimization, hea, algorithm)

Griewank(x)

HEA(varargin)

Rastriginsfcn(pop)

image thumbnail

updated 4 years ago

Powerful Sudoku Solver by Janardhanan Sivaramakrishnan

A function that solves everything but the toughest of sudoku puzzles (sudoku, puzzle solver, games)

Sol=sudoku_lvl2(A)

image thumbnail

updated almost 5 years ago

2D fast marching algorithm by Juan Cardelino

computation of distance maps using fast marching (fast marching, algorithm, eikonal)

T=fast_marching(data_points,siz,plot)

test_fm.m

image thumbnail

updated 5 years ago

Sqrt(x^2 + y^2) and atan(y/x) via CORDIC by Luis Moreno

Transform cartesian coordinates (x,y) to polar (r,theta) (cordic, atan, algorithm)

[mag1 cangle]=moducordic(xv,yv)

image thumbnail

updated 5 years ago

channel capacity by ABDULLAH AL-FAIFI

Arimot-Blahut Algorithm (channel capacity, arimot, embedded matlab)

capacity.m

image thumbnail

updated 5 years ago

BSSGUI by J. Petkov by Jakub Petkov

Interactive GUI to control the BSS algorithms (algorithm, gui, bssgui)

[A,M]=nearest2(Wnew,Wold);

[Wefica, ISRef, Wsymm, ISRsymm, status, icasig]=efica(X, in...

bssgui.m

Contact us