image thumbnail

updated 1 month ago

Frechet Distance Calculator by Tristan Ursell

Estimate the similarity between curves in space using the scalar Frechet Distance. (curve, curves, path)

frechet(X1,Y1,X2,Y2,varargin)

image thumbnail

updated 5 months ago

NCHOOSECRIT (V1.0 feb 2013) by Jos (10584)

returns those subsets (= combinations of elements of a set) that fulfill a specific criterion (combinations, pick, subsets)

nchoosecrit(S, FUN)

image thumbnail

updated 5 months ago

voltage to current converter by safaa

V2I function (function)

v2i (vin,R1)

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

Bistatic Ambiguity Function by Luigi

To calculate the Ambiguity function for a bistatic Radar (bistatic, radar, ambiguity)

varargout=bisambfun(u,r,fs,cut)

image thumbnail

updated 12 months ago

ALL PERMUTATIONS OF SEQUENCE by Sandeep Solanki

Generates All Permutations of a sequence (math, function, permutation)

allperm(n)

image thumbnail

updated 12 months ago

Concatenate arrays with different sizes in Matlab by Andres

This function allows you to concatenate arrays with different sizes padding with NaN where needed. (array, concatenate, function)

[catmat]=padconcatenation(a,b,c)

image thumbnail

updated 12 months ago

Gabor function by Niru Maheswaranathan

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

gabor(varargin)

image thumbnail

updated 1 year ago

NEWTON RAPHSON by Sandeep Solanki

Newton-raphson method to find root of an equation. (math, equation, newtonraphson)

newtonraphson(Eqn_Str,Start_Point,Max_Iter)

image thumbnail

updated 1 year ago

Convert Latitude/Longitude by Matthew

Convert Latitude/Longitude between Degrees/Minutes/Seconds to/from Decimal (function, convert, conversion)

degrees=degreesMinutesToDecimal(degrees_minutes)

degrees_minutes=degreesDecimalToMinutes(degrees)

image thumbnail

updated 1 year ago

Aperiodic array generation by ben payne

Functions to create aperiodic 1D, 2D arrays from Thue-Morse, Fibonacci, Rudin-Shapiro algorithms (aperiodic, thuemorse, thue)

convert_1D_binary_to_2D_array(sequenc)

convert_2D_array_to_coordinates(sourceGrid,scatr_const)

generate_1D_baumSweet_array(generation,seed)

image thumbnail

updated 1 year ago

EnRaya 0.9 beta by Jorge Crespo

El clásico tres en raya sobre consola MatLab. The classic Tic-Tac-Toe on MatLab console (tres en raya, tic tac toe, tictactoe)

enraya.m

image thumbnail

updated 1 year ago

Recursive Integer Guessing Game by Adam Gripton

A recursive algorithm that queries an objective function to guess an unknown integer. (guess, game, function)

z=guessgame(isleq,n,k)

image thumbnail

updated 1 year ago

Universal MEX wrapper by Thomas

Call any function in a shared library from Matlab (with some limits on the function signature). (c, wrapper, dll)

dl_check(symbol)

dl_exec(funName, varargin)

dl_load(libPath, varargin)

image thumbnail

updated 1 year ago

chooseargs by Adam Gripton

Allows direct, inline return of any combination of arguments and indices to a function. (inline, function, output)

C=chooseargs(f,argidx,idxc,varargin)

image thumbnail

updated 1 year ago

polyfitn by John D'Errico

Polynomial modeling in 1 or n dimensions (polynomial, curve, regression)

polyfitn_demo

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

image thumbnail

updated 1 year ago

Specific Sample Function Plotting using MatLab 7.12 by Nadir Altinbas

Function plotting (function, pyramid surface, interval)

image thumbnail

updated 1 year ago

CNCCoder by Sagheb Kohpayeh Araghi

This is a basic CNC coder which allow user to write CNC codes. (cnc code, data, cnc)

newCNC

image thumbnail

updated 1 year ago

Open new m-file with standard header text in editor by Kevin Bartlett

Creates a new m-file with standard function header text. (development, editor, boilerplate)

newmf(newMFileName)

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

InsertHeader by Dan K

Inserts a user defined header in the m file currently open in editor (development environme..., text header editor rc..., header)

InsertHeader(varargin)

image thumbnail

updated 1 year ago

combineOpt by Andrey Popov

Combine user provided option's structure with a default one (structures, cell arrays, function)

combineOpt(options,default_options)

image thumbnail

updated almost 2 years ago

dnaTranslate by Alexander Wallar

This function translates DNA nucleotides into Amino Acids (bio, biology, biotech)

dnaTranslate(dnaVec)

image thumbnail

updated almost 2 years ago

Workspace variables into functions by Mert

Reading multiple variables into a function and saving those variables in a loop (variables, function, loop)

myfunc1.m

image thumbnail

updated almost 2 years ago

Newton - Raphson method by Andrea Cirillo

Find the zero of a regular function with Newton - Raphsons' method. (newton raphson, zero, newton)

zero=newton_raphson(funzione,tolleranza)

image thumbnail

updated almost 2 years ago

Draw grpah of a function on matrix by David Silver

FCN2MAT Convert user-defined single-valued function to matrix (function plotting, plot, draw)

fcn2mat(fcnstr,minX,maxX,perX,lineWidth,perY,minY,maxY)

image thumbnail

updated 2 years ago

Simple example of PSO algorithm by Andrea Cirillo

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

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

image thumbnail

updated 2 years ago

Simple example of the Simplex Method by Andrea Cirillo

It's a function that finds the minimum value of a two variables function with the simplex method. (function, method, mathematics)

simplexMethod(fun, init_point, step_size, toll, numMaxIter)

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

Bisection's method by Andrea Cirillo

It's a matlab function that finds a regular real function's zero with the bisection's method. (bisection, approximation, optimization)

p_min=bisection(func,int,iter,tol_x,tol_f)

image thumbnail

updated 2 years ago

EXECIN by Jiro Doke

Executes functions and scripts not in the path. (path, directories, files)

execin(fullFunctionName, varargin)

image thumbnail

updated almost 3 years ago

image resampling by Omer Demirkaya

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

imresample(oldpixsize,img,newpixsize,intmethod)

image thumbnail

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

Matrix exponential by Stefan Güttel

A rational Chebyshev method to compute the exponential of a symmetric matrix. (exponential, matrix exponential, function)

rcexpmv(A,v,tol,solver)

rcexpmv2(K,M,v,tol,solver)

test_rcexpmv.m

image thumbnail

updated 3 years ago

fdep: a pedestrian function dependencies finder by us

FDEP dissects ML files and iteratively looks for all user defined functions used during runtime (nested, path, files)

fdep.m

r=tfdep3(varargin)

tfdep1

image thumbnail

updated 3 years ago

farg: a pedestrian M-file parser showing all used functions' syntax by us

parses an M-file searching for functions and prints their exact, literal syntax (development environme..., argument list, script)

ao=dummy1(ai)

fargtest(... %#ok

fargdemo.m

image thumbnail

updated 3 years ago

CHECKVARS by Matt Fig

Checks for function masking by variables in an M-File. (masking, mask, variables)

checkvars(fname)

image thumbnail

updated 3 years ago

UniqueFuncNames by Jan Simon

Check uniqueness of function names (function, name, check)

UniqueFuncNames()

image thumbnail

updated 3 years ago

dep by Thomas Guillod

Make a dependency report for a matlab file and plot the call graph. Make only static code analysis. (report, dependency, calling)

dep(indir,main,reclim,others,fileout)

dep1()

dep2()

image thumbnail

updated 3 years ago

struvem.m by Drew

Modified struve function calculation using series definition. (struve, modified struve, bessel)

f=struvem(v,x,n)

image thumbnail

updated 3 years ago

exportToZip: Identifies the dependencies of an M-file and creates a ZIP file by Malcolm Wood

Files inside $matlabroot/toolbox are omitted, providing a useful way to package your work (potw, dependencies, files)

exportToZip(funcname,zipfilename)

mydepfun(fn,recursive)

image thumbnail

updated 3 years ago

Direct Indexing of Function Calls (OOP Exercise) by Matt J

Pseudo- function handle which can both call a function and post-index the output in 1 expression. (fancy function, indexing, function)

S=LibraryStruct

S=add2lib(varargin)

S=rmlib(varargin)

image thumbnail

updated 3 years ago

Agilent 33120A Function Generator - Driver by The Instrument Control Team

MATLAB instrument driver for the Agilent 33120A Function / Arbitrary Waveform Generator (33120a, generator, function)

image thumbnail

updated 3 years ago

Beta regression by Willem-Jan de Goeij

Estimation of a beta regression model (logit link function). The parameters are estimated with ML. (beta, regression, model)

betalik(vP, mX, vy)

betareg(vy, mX);

betasim(n, vBeta, phi)

image thumbnail

updated 3 years ago

Permittivity of Metals at Optical Wavelengths (Brendel-Bormann) by Collin Meierbachtol

Relative complex permittivity of various metals using the Brendel-Bormann method. (palladium, copper, permittivity)

cef(z,N);

cef(z,N);

image thumbnail

updated 3 years ago

domain coloring by Ankur Pawar

Visualization of complex function. (domain coloring, complex function, mathematics)

img=coolviz1(func)

img=coolviz2(func)

img=coolviz3(func)

image thumbnail

updated 3 years ago

Permittivity of Gold at Optical Wavelength (Brendel-Bormann) by Collin Meierbachtol

Relative complex permittivity of gold over optical wavelengths using the Brendel-Bormann method. (permittivity, complex, gold)

cef(z,N);

cef(z,N);

image thumbnail

updated 3 years ago

The speed of reading and writing matrix by function by Su Dongcai

A simple demonstration on the speed of reading and writing matrix by function (function, read, write)

check_rwSpeed(data, N_iters)

image thumbnail

updated 3 years ago

lapack by Tim Toolan

Easily call any LAPACK or BLAS routine from inside Matlab. (blas, function, lapack)

lapack(varargin);

lapackhelp(func)

image thumbnail

updated almost 4 years ago

evalf.m v2.0 (Sep, 2009) by Carlos Adrian Vargas Aguilera

Evaluates any function (handle, anonymous, name, full-name) even if not in the MATLAB PATH! (utilities, path, cd)

evalf(varargin)

Contact us