image thumbnail

updated 5 hours 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 3 days 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 6 days ago

My Clock by Gentian Zavalani

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

myclock

My clock

image thumbnail

updated 6 days 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 7 days 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 8 days 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 9 days 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,deps,varargin)

image thumbnail

updated 10 days 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,deps,varargin)

plot_subroutines(foo,varargin)

image thumbnail

updated 15 days 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 16 days ago

Between numbers by Håvard Falck

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

intAB.m

image thumbnail

updated 20 days 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 22 days ago

MappedTensor class - memory-mapped files by Dylan Muir

A better, transparent memmapfile, with complex number support. (matrix, large tensor, mapped file)

MappedTensor

image thumbnail

updated 22 days ago

Access TIFF / TIF stacks - 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 27 days ago

Pair-wise Euclidean Distance Matrix by Quan Wang

Computing distance matrix without loops (data, distance, matrix)

D=distanceMatrix(X)

demo.m

image thumbnail

updated 28 days ago

CircPlot by Kevin Hellemans

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

CircPlot

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)

function_handle.m

image thumbnail

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

makeinstall by Norbert Marwan

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

makeinstall(varargin)

image thumbnail

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

ISO 8601 Date String to Serial Date Number by Stephen Cobeldick

Convert an ISO 8601 Date String to Serial Date Numbers. Auto-detect or select timestamp style. (calendar date, date, datenum)

datenum8601(Str,Tok)

image thumbnail

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

ISFUNCTION by Jos (10584)

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

isfunction(FUN)

image thumbnail

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

recursive_scriptsearch by Jakob Sievers

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

dd_out=recursive_scriptsearch(indir,str)

image thumbnail

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

immovie2 by Fang Liu

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

immovie2(varargin)

example.m

image thumbnail

updated 1 month ago

CONST structure by Rody Oldenhuis

STRUCT with immutable fields (code, structures, structure)

const.m

image thumbnail

updated 1 month 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 2 months ago

Kepler State Transition Matrix (MEX) by Rody Oldenhuis

Compute Kepler state transition matrix for an arbitrary number of time steps. M and C++ version. (aeronautics, aerospace, kepler)

progress_orbitM.m

test_STM.m

image thumbnail

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

matlab-ParforProgress2 by Andreas

A PARFOR progress monitor for Matlab GUIs and the command line (works with normal for-loops) (parallel, parfor, progress monitor)

ParforProgressStarter2(s, n, percentage, do_debug, run_ja...

ParforProgressStressTest2(N, run_javaaddpath)

get_matlab_version()

image thumbnail

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

Contact us