image thumbnail

updated 23 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 29 days ago

Constructor for function_handles by Rody Oldenhuis

Creates evaluable function handles for any function, possibly outside the MATLAB search path (function pathscriptin..., function, function_handle)

image thumbnail

updated 2 months ago

polyfitn by John D'Errico

Polynomial modeling in 1 or n dimensions (polyfit, modeling, regression)

polyfitn_demo

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

image thumbnail

updated 3 months ago

plot_depfun by Christopher Pedersen

plots a graph of the dependencies of a function (code, function, depfun)

plot_depfun(foo,varargin)

plot_graph(names,from,to,varargin)

image thumbnail

updated 3 months ago

plot_subroutines by Christopher Pedersen

graphviz-like plot of the subroutines in a function, and their dependencies (code analysis, function, code)

plot_graph(names,from,to,varargin)

plot_subroutines(foo,varargin)

image thumbnail

updated 3 months ago

My Clock by Gentian Zavalani

Matlab code to design an Analog clock (function, my clock, linspace)

My clock

myclock

image thumbnail

updated 4 months ago

ISFUNCTION by Jos (10584)

true for valid matlab functions (v3.1, feb 2014) (function, isfunction, matlab function)

isfunction(FUN)

image thumbnail

updated 4 months ago

sum_digits by Daniel Herber

Find the sum of digits of a vector and an interesting script that uses it (digits, number, summation)

sum_digits(x)

dsum_eq_rsum.m

image thumbnail

updated 5 months ago

Complex Function Explorer by Elias Wegert

Routines and user interface to depict and explore complex functions using color representations (colormap, complex function, special functions)

CFEGUI

MyFunction(z)

PPDemo(cs)

image thumbnail

updated 5 months ago

factory: simple factorization vector tool by Kashi Khorasani

This function returns a vector containing all factors of the number N (input) (matrix, function, vector)

num2mat.m

image thumbnail

updated 6 months ago

Phase Plots of Complex Functions by Elias Wegert

Routines for creating color representations of complex functions (phase plots) (complex functions, phase plot, domain coloring)

BrightenRGB(RGB,bright)

GUI_PhasePlot(hObject, ~)

PPDemo(cs)

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

plot Hydrogen Atom Molecular Orbital by Evan

mix, hybridize, and visualize hydrogen orbital wavefunctions (molecular, physics, chemistry)

PlotHydrogenMolecularOrbital

PlotHydrogenMolecularOrbital_1s2s3s4s

PlotHydrogenMolecularOrbital_2p

image thumbnail

updated 7 months ago

Bisection Method Animation by James Adams

Calculates the root of a function using the Bisection method. Values at each iteration are plotted. (bisection, method, root)

BisectionMethod_Animation_JA

image thumbnail

updated 7 months ago

Fixed Point Algorithm by James Adams

Calculates the fixed point of a function. (fixed point, algorithm, function)

FixedPoint_Algorithm_JA

image thumbnail

updated 7 months ago

Funcion FOR by Mike

funcion for en matlab (for, matlab, function)

EJemplo_funcion.m

image thumbnail

updated 8 months ago

Newton's Method Animation by James Adams

Uses Newton's method to calculate a root to a polynomial function. (newton, method, polynomial)

NewtonsMethod_Animation_JA

image thumbnail

updated 8 months ago

Quadratic Solver by James Adams

Finds solutions to a Quadratic function using Quadratic formula (quadratic, function, roots)

QuadraticFunction_JA

image thumbnail

updated 8 months ago

How To Convert A User Input String To A Function by Masoud Ghanbari

This tutorial will show how to convert user input string to a function which accepts variable. (string, function, input)

inputconvert.m

image thumbnail

updated 9 months ago

South African Public Holidays by Nicole Wilson

Returns dates corresponding to non-trading days for the Johannesburg Stock Exchange in South Africa (finance, dates, function)

holidaysRSA(varargin)

image thumbnail

updated 9 months ago

MATLAB function list by Jamie Gertsch

Writes a MATLAB function list to file. (development environme..., function, syntax highlighting)

writeFunctionList(func_file)

image thumbnail

updated 10 months ago

Bound Values of an array by Pramit Biswas

Check whether value of the array within specified range or not and change accordingly (array, minimum, maximum)

MinMaxCheck( minimum, maximum, A2comp )

image thumbnail

updated 11 months ago

Vectorized Bisection Search by Sky Sartorius

Robust root-finding method that handles n-dim inputs and therefore has key advantages over FZERO. (bisection, search, root)

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

image thumbnail

updated 11 months ago

isscript by Folkert

The function checks if an m-file is a script or not. (script, utility, mfile)

isscript(filename)

image thumbnail

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

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

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

nchoosecrit(S, FUN)

image thumbnail

updated 1 year ago

voltage to current converter by safaa

V2I function (function)

v2i (vin,R1)

image thumbnail

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

ALL PERMUTATIONS OF SEQUENCE by Sandeep Solanki

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

allperm(n)

image thumbnail

updated almost 2 years 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 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)

image thumbnail

updated 2 years ago

NEWTON RAPHSON by Sandeep Solanki

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

newtonraphson(Eqn_Str,Start_Point,Max_Iter)

image thumbnail

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

Universal MEX wrapper by Thomas

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

dl_check(symbol)

dl_exec(funName, varargin)

dl_load(libPath, varargin)

image thumbnail

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

Specific Sample Function Plotting using MatLab 7.12 by Nadir Altinbas

Function plotting (function, pyramid surface, interval)

image thumbnail

updated 2 years ago

CNCCoder by Sagheb Kohpayeh Araghi

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

newCNC

image thumbnail

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

dnaTranslate by Alexander Wallar

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

dnaTranslate(dnaVec)

image thumbnail

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

Newton - Raphson method by Andrea Cirillo

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

zero=newton_raphson(funzione,tolleranza)

image thumbnail

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

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. (mathematics, optimization, function)

simplexMethod.m

Contact us