image thumbnail

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

image thumbnail

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

Matlab Style Guidelines Cheat Sheet by Jason Nicholson

One page summary of the "MATLAB Programming Style Guidelines" (style, guidelines, programming)

image thumbnail

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

image thumbnail

updated 3 months ago

Image/matrix shift by Nikolay S.

Two of my functions used for registration-matrix shifting as alternative to circshift. (circular shift, interp2, matrix manipulation)

shiftedMat=floatingCircShift(inMat, shiftSize)

shiftedMat=normshift(inMat, shiftSize)

varargout=imshift(shiftVec, varargin)

image thumbnail

updated 3 months ago

Jacobian-Free Newton-Krylov (JFNK) method by Cheuk

Function uses JFNK to solve a system of non-linear equations (jacobianfree, newtonkrylov, jacobian)

JFNK(F, x0, epsilon, max_iter)

JV_APPROX(v, F, x)

image thumbnail

updated 3 months ago

CloudConnectivityChecker by Amaria

Checks whether your MATLAB session can connect to the Amazon EC2 cloud. (parallel, ec2, cloud)

image thumbnail

updated 3 months ago

CloudConnectivityChecker_R2012a by Amaria

Checks whether your MATLAB session can connect to the Amazon EC2 cloud (parallel, cloud, ec2)

identifyConnectionErrors(obj, ME)

launchVerification()

(Hidden) AbstractStage

image thumbnail

updated 3 months ago

emptyStruct by David Young

Creates empty struct arrays of various kinds (structures, structure, struct)

emptyStruct(fieldnames, sz)

image thumbnail

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

grades by m.montaser sabry

simple program to get grades with ability to modify (structures)

grades.m

image thumbnail

updated 4 months ago

Write Cell Array to Text File by Roland Pfister

A cell array is written to a delimited output file, incl. options for appending & custom delimiters. (array, cell, dlmwrite)

dlmcell(file,cell_array,varargin)

image thumbnail

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

toTable: Simple Manual Matlab to Excel or Word Function by Kirk

Take data from Matlab to an Excel Spreadsheet or a Word Table. (excel, convert, matlab)

toTable(Input,varargin)

image thumbnail

updated 4 months ago

toPPT by Jens Richter

This script will help you to make your powerpoint slides directly from matlab. (powerpoint, microsoft, windows)

addBitmapGraphic(myFigure,myArg)

addText(myArg)

addVectorGraphic(myFigure,myArg)

image thumbnail

updated 4 months ago

Random Integer Generator by Edward Zechmann

This program quickly outputs n random integers in the specified range from a to b. (random, random integer, integer)

[ndraw, count, count2, error]=rand_int(a, b, n, sorted, n...

image thumbnail

updated 4 months ago

Arbitrary Read by Debejyo Chakraborty

Read line by line from an arbitrarily formatted file (delimiter, file read, cell array)

arbitread.m

image thumbnail

updated 4 months ago

iterlin and iterget by Samuel Bandara

Linearize nested loops for smarter dispatch by parfor (parfor)

iterget(rng, it)

iterlin(rng)

image thumbnail

updated 4 months ago

Distributed Batch Job by Oliver Woodford

Spread batch work over multiple MATLAB instances on multiple networked PCs (parallel, parfor, distributed)

batch_job_distrib(varargin)

image thumbnail

updated 4 months ago

Max and min keeping NaNs by David Young

The max and min functions ignore NaN values. These functions keep them like arithmetic functions do. (max, min, maximum)

maxNan(a, b, dim)

minNan(a, b, dim)

image thumbnail

updated 4 months ago

Batch Job by Oliver Woodford

Spread batch work over multiple MATLAB instances (batch, batch processing, parfor)

batch_job(varargin)

image thumbnail

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

CATSTRUCT by Jos (10584)

Concatenate/merge structures (v4.0, dec 2013). (structures, cell arrays, structure)

catstruct(varargin)

image thumbnail

updated 5 months ago

adtranspose by Alexander Hirzel

antidiagonal transpose (antidiagonal, transpose, matrix)

adtranspose(M)

image thumbnail

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

How To Store a List of Names by Masoud Ghanbari

Simple Tutorial that shows the way to store many of names and strings in MATLAB (list, name, store)

list.m

image thumbnail

updated 5 months ago

Funcion FOR by Mike

funcion for en matlab (for, matlab, function)

EJemplo_funcion.m

image thumbnail

updated 5 months ago

Eternity2 by Jeremy Wurbs

Recursive Eternity 2 Solver (eternity, eternity 2, recursion)

addPiece( pieces, addedLoc, addedPiece )

findSol( board, boardSize, pieces, pieceTypes, numPieces,...

generateBoard(boardSize, numTypes, numBorderTypes)

image thumbnail

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

save or load the individual properties of an object by Hao

a demo class capable of saving or loading individual properties, to or from a .mat file (save, load, object)

demoClass

image thumbnail

updated 5 months ago

OpenStreetMap Functions by Ioannis Filippidis

Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file. (data import, automotive, matrix)

...

...

[d pred]=dijkstra(A,u)

image thumbnail

updated 5 months ago

isedm by Jon

Is given matrix an EDM? (optimization, euclidean distance ma..., edm)

isedm(D,tolerance_in,verbose,dim,V);

image thumbnail

updated 5 months ago

Quadratic Solver by James Adams

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

QuadraticFunction_JA

image thumbnail

updated 5 months ago

Linear Equation by James Adams

Calculates a linear equation for two given points. (linear, inversion, matrix)

LinearEquation_JA

image thumbnail

updated 5 months ago

Knights Tour by Sumit

This Program generates the knights tour for a given mXn board for a given position of the knight (plot, plotting, graph)

chessknight.m

coordinates1.m

knights_all.m

image thumbnail

updated 5 months ago

Symbolic Matrix by Zachary Danziger

Creates a matrix composed of properly indexed symbolic elements. (mathematics, linear algebra, symbolic math)

symMat(dims,Mname,type)

image thumbnail

updated 5 months ago

Matrix exponential times a vector by Peter Kandolf

Computes EXPM(tA)b, without explicitly computing the matrix exponential, by Leja interpolation. (mathematics, matrix, matrix exponential)

expleja (h, A, varargin)

image thumbnail

updated 5 months ago

Oommf vector data file to Matlab array by H├ęctor Corte

Imports Oommf vector data files saved as text into Matlab (oommf, micromagnetism, import)

[data]=oommf2matlab(fileToRead1)

image thumbnail

updated 5 months ago

Check4updates by Bjorn Gustavsson

Check4updates tracks updates of your favourite FeX packages, with GUI-selection for download. (programming, fex package update tr..., manage download)

Check4updates.m

fcnWithInfoFields.m

fcnWithInpArgsExmpl.m

image thumbnail

updated 5 months ago

Recursive Sudoku Solver in MATLAB by Josip

A Sudoku solver that takes a (9x9) matrix and outputs the solved matrix. (sudoku, recursion, solver)

miniSudokuSolver(sud)

image thumbnail

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

Contact us