image thumbnail

updated 4 months 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(varargin)

image thumbnail

updated 4 months ago

maxMinC.zip by Valerio Biscione

find the largest (or smallest) element in any cell array, nested or not (max, min, cell array)

[maxN]=maxC(data)

[minN]=minC(data)

image thumbnail

updated 4 months ago

polyfitn by John D'Errico

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

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

polyn2sym(polyn)

image thumbnail

updated 4 months ago

num2clip board with column names by Roberto

Easy function to copy a numeric array to the clipboard, allowing to write costum column names. (clipboard, excel, numeric)

num2clip(dat,varargin)

image thumbnail

updated 4 months ago

Efficient Vector Rotation Matrix Routine by Darin Koblick

Efficient Method to Determine a Matrix Needed to Rotate One Vector to Another (vector, rotation, euler)

vecRotMat(f,t)

vecRotMatDemo()

image thumbnail

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

Heat Exchanger Solver by Seyyed Ali

Calculating outlet temperatures of a Heat Exchanger using Epsilon-NTU method (boiler, boiling, condense)

[T_hot_out,T_cold_out]=HeatExchanger(m_dot_hot,c_p_hot,T_...

epsilon=effectiveness(NTU,C_r,HE_Type,N)

Test.m

image thumbnail

updated 4 months ago

ndwmean by Russell

Up to n-dimensional weighted mean or average of an array with NaN support (weighted mean, weighted sum, weighted average)

ndwmean(array,weights,directions)

image thumbnail

updated 4 months ago

Towers of Hanoi by Brian Moore

A MATLAB GUI for the popular Towers of Hanoi puzzle game with manual or automatic solution. (towers of hanoi, recursion, gui)

TowersOfHanoi

image thumbnail

updated 4 months ago

My Clock by Gentian Zavalani

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

myclock

My clock

image thumbnail

updated 4 months ago

fun_removecellrowcols by José Crespo Barrios

Removes the non desired rows or columns from a cell (cell, cell arrays, remove)

fun_removecellrowcols.m

image thumbnail

updated 4 months ago

Generating Gaussian Filter 2D Matrix by Duc Chung Tran

The function is used to generate Gaussian Filter 2D Matrix. (gaussian, filter, matrix)

g=Gaussian_filter(Filter_size, sigma)

image thumbnail

updated 5 months ago

TrueRNG Hardware Random Number Generator Interface / Driver by Matt

Matlab interface to the TrueRNG Hardware Random Number Generator sold by ubld.it (true random number ge..., statistics, probability)

truerng(varargin)

image thumbnail

updated 5 months ago

XMLNode by Jarrod Rivituso

MATLAB class that allows you to use XPath to navigate and extract data from an XML document. (xml xpath java namesp..., xml, namespace)

XMLNode

XMLNodeImpl

startup.m

image thumbnail

updated 5 months ago

Between numbers by Håvard Falck

Find values betwee original values in a vector (interpolation, vector, linear)

intAB.m

image thumbnail

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

CircPlot by Kevin Hellemans

Create circular plot of labeled data (vector, circle, plot)

CircPlot

image thumbnail

updated 5 months ago

3D colored bar plot by Johannes

3D bar plot with arbitrary coloring (bar plot, 3d, color)

bar3c(Z,x,y,w,C)

image thumbnail

updated 5 months ago

LaTeX table element wrapper by Matthew Arthington

Change the font of certain elements within a LaTeX table string (latex, string)

S=latexWrapTableElements(latexTable,linearIndicesOfElemen...

image thumbnail

updated 5 months ago

Random Cropped Image Generator by Soumyabrata Dev

This script helps in the generation of cropped image with random offset and random orientation. (cropped image, random, offset)

random_square_grab(InputImage, SizeGrabImage)

image thumbnail

updated 5 months ago

Positive-Definite Matrix by Muhammad Asim Mubeen

This function returns a positive-definite symmetric matrix. (matrix, matrices, nonlinear)

Spd_Mat(A)

image thumbnail

updated 5 months ago

makeinstall by Norbert Marwan

Create a single install file for your toolbox distribution. (path, directories, files)

makeinstall(varargin)

image thumbnail

updated 5 months ago

flattenStruct2Cell by Paul

Takes a Nested Structure, and returns a linear Cell array (structure, structures, cell arrays)

[cellstack cellnamestack]=flattenStruct2Cell(I)

image thumbnail

updated 5 months ago

Sudoko Solver by Salaheddin Hosseinzadeh

Solves Sudoko (programming, sudoko, for loop)

[table]=block_elimination(table)

[table]=linear_elimination(table)

[table]=locator(table)

image thumbnail

updated 6 months ago

Latin Hypercube by Nassim Khaled

lhsdesign_modified generates latin hypercube samples (latin, hypercube, doe)

[X_scaled,X_normalized]=lhsdesign_modified(n,min_ranges_p...

image thumbnail

updated 6 months ago

dbarray - pack and unpack database arrays to matlab arrays by Sven

dbarray lets you directly send/fetch array[] type database fields into native MATLAB variables (database, array, multidimensional)

dbarray.pack( dataIn, dbConn, dataType )

dbarray.packJavaArray( dataIn, jClass )

dbarray.unpack( objIn )

image thumbnail

updated 6 months ago

Clean anonymous functions of excess memory by Matt J

Tries to purge an anonymous function of non-essential workspace variables (anonymous function, memory, parfor)

fh_clean=afclean(fh)

image thumbnail

updated 6 months ago

ISFUNCTION by Jos (10584)

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

isfunction(FUN)

image thumbnail

updated 6 months ago

Interleave Vectors or Matrices by Steven Shimizu

Interleaves rows or columns of any number of vectors or matrices (interleave, matrix, vector)

interleave2(varargin)

image thumbnail

updated 6 months ago

Regular expression search in cell array of strings by Maximilien Chaumon

Search in cell array of strings. Returns indexes of cells in stead of indexes within cells . (cell, cellstr, regexp)

regexpcell(c,pat,inv)

image thumbnail

updated 6 months ago

Bytestream Save Toolbox by Jan Berling

Ultrafast saving of workspace variables as bytestreams. Especially useful for big cells and structs. (save, bytestream, cell arrays)

InBase=fnBaseExist(var1)

cd_ifPathIsValid(varargin)

isValidPathName(pathInput)

image thumbnail

updated 6 months ago

Read Gml by Elias

Stores gml info in hierarchical structure. Derive Adjacency Matrix (graph, gml, struct)

get_adjacency_matrix(graph)

get_next_struct(content, i)

read_gml(filename)

image thumbnail

updated 6 months ago

LOGICALEXPAND by Jos (10584)

expand (or shrink) series in a logical vector (v2.0, feb 2014) (logical, find, shrink)

logicalexpand(TF,N)

image thumbnail

updated 6 months ago

Find Index by David Pineda

Give a Index near a value searching sequentially in function of the direcction (find, value, vector)

In=find_index(valor,tolerancia,vector,direccion)

image thumbnail

updated 6 months ago

Linear fit with both uncertainties in x and in y by Julien Browaeys

Performs a linear fit with uncertainties in x and y, using a Monte Carlo method (fit, linear, plot)

linfitxy( xdatain, ydatain, xerrin, yerrin, varargin)

image thumbnail

updated 6 months ago

recursive_scriptsearch by Jakob Sievers

Search for strings within multiple scripts (string, search, folder)

dd_out=recursive_scriptsearch(indir,str)

image thumbnail

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

deflection of a cantilever beam by Abhilash Harpale

calculates the deflection, bending moment and shear force for a cantilever beam. (solid mechanics, structures, civil)

deflection=beam_deflection(load,ei,l,dl)

image thumbnail

updated 6 months ago

immovie2 by Fang Liu

IMMOVIE2 make movie from multiframe superimposed images (image processing, immovie, movie)

immovie2(varargin)

example.m

image thumbnail

updated 6 months ago

Quasi Brownian Motion by lindo Ouseph

particle in a box interacting with the walls only (brownian motion, random walk, random)

QuasiBrownianMotion

image thumbnail

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

mat2num by Kashi Khorasani

This function converts the input (matrix) into an integer/number comprised of all of the digits. (num2mat, mat2num, vector)

mat2num.m

image thumbnail

updated 7 months ago

num2mat by Kashi Khorasani

This function converts the input (integer) into a matrix comprised of all of the integer's digits. (num2mat, mat2num, factory)

num2mat.m

image thumbnail

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

Gaussian Elimination with Pivoting Method by Cheuk

Function uses Gauss elimination with pivoting to solve a linear system in standard format. (linear, algebra, gaussian)

GAUSS_ELIM(A, b)

image thumbnail

updated 7 months ago

vind2sub by Chris

MATLAB's ind2sub function implemented to return a variable length vector (vector, matrix, utility)

indices=vind2sub(siz, ind)

image thumbnail

updated 7 months ago

Compressed Row Storage (CRS) Successive Over-Relaxation (SOR) Method by Cheuk

Function uses Successive Over-Relaxation (SOR) method to solve a linear system in CRS format (sor, successive, over)

CRS_SOR(CRS, b, x, epsilon, w)

image thumbnail

updated 7 months ago

LOGICALFIND by Jos (10584)

Find occurrences of consecutive non-zeros in a vector (v1.0, jan 2014) (find, matrices, search)

logicalfind(V, N)

image thumbnail

updated 7 months ago

Progress bar for matlab loops (incl. parfor) by Stefan

A progress bar that shows what percentage of a loop has finished. Based on parfor_progress. (loop, progress, bar)

ProgressBar

Contact us