20,005 results

FOTF Toolbox

Version 2.0.2

by Dingyu Xue

FOTF Toolbox for fractional-order systems

A useful tool for parsing function arguments like 'cellspacing',6,'monkey',1

Helper function for parsing varargin. Makes it easy to write functions that take arguments like this: subaxis(4,2,1,'spacing',0,'marginleft',.1,'H','pt',.1

Evaluate the Mittag-Leffler function with one or two parameters at square matrix arguments

This MATLAB functions evaluates the Mittag-Leffler (ML) function with two parameters ALPHA and BETA at the square matrix argument AE = ML(A,ALPHA,BETA) evaluates the ML function with two parameters

Optional function arguments with default values: optndfts

Optional function arguments: optndftsAllows optional arguments to be specified as name value pairs, and default values given for those augments not specified e.g.function strt=demo1(arg1,varargin

This toolbox offers convolution neural networks (CNN) using k-fold cross-validation, which are simple and easy to implement.

Adds multi-file functionality to functions handling only single files.

FILEFUN is created in the same spirit as e.g. CELLFUN, in that it repeatedly calls the same function FUN with different arguments, in this case filenames. It will then collect the output(s) of the



by Jos (10584)

All combinations of input (v4.2, apr 2018)

number of elements of the N inputs. This functionality is also known as the Cartesian Product. The arguments can be numerical and/or characters, or they can be cell arrays. Examples

MIB2 is an update package for segmentation of multi-dimensional (2D-4D) microscopy datasets

authors whose functions were utilized during development of the program: http://mib.helsinki.fi/acknowledgements.htmlThe MIB version 1 is available from here

Read .xyz files and make gridded datasets.

Here are two functions: xyzread reads text .xyz files into your Matlab workspace. This is written for GMT-generated .xyz files, but may work for other .xyz files as well. xyz2grid converts the

A function which Validates given IPV4address.

the IP address you want to Validate . This function returns a value 1 if success else 0 . If any other matlab data types apart from string type are passed to this function then also it returns a value 0

Calculates the Generalized Hypergeometric Function at the desired accuracy.

A numerical evaluator for the generalized hypergeometric function for complex arguments with large magnitudes using a direct summation of the Gauss series.pFq isdefined by (borrowed from Maple): pFq

Assigning values (default vs. user) to optional arguments (varargin) in a function

This is a utility for setting the value of optional arguments to a function. The first argument is required and should be a cell array of "name, default value" pairs for all optional arguments. The

Bessel function of complex order and argument

As so many people have asked me the C++ code for calculating besel functions of complex order and complex arguemnt, I now submit them to benifit more people ...

supplying over 17 validity indices and 5 clustering algorithms based on GUI

Cluster validation is an important and necessary step in cluster analysis. This visual cluster validation tool CVAP based on GUI provides important tools and convenient analysis environment for

A Matlab function For Randomly Partitioning Date into Training, Validation and Testing Data

This function randomly partitions data into training, validation and testing data using Cross Validation. Partitioning data in this manner is commonly used for determining the performance of

Matches two pictures given as arguments.

The function takes two images as argument and using edge detection checks whether they are the same or not...a cool and simple code which can be used in security systems. The level at which the two

Obtaining the matrix representing a given linear function

As is well known, if f() is linear function then there exists a matrix A such that for any Y=f(X), where X and Y are array-valued input/output arguments, the operation can equivalently be expressed

Easily add optional, named arguments to your functions, like this: f('var_name', value).

Assigns named arguments passed to your function to local variables (as in plot(), etc.). The name of the argument is the name of the local variable in your function. Example: inputfun('prompt', '&gt

FDEP dissects ML files and iteratively looks for all user defined functions used during runtime

FDEP dissects MATLAB files and iteratively looks for all user defined functions (modules), which are used during runtimeFDEP retrieves for each module its- subfunctions- nested functions- anonymous

Easy to use, GUI based tool to analyze, validate, postprocess, visualize and simulate (micro) PIV data. Optional parallel computing.

to include the LIC function. Thanks to Raffel et al. for writing the book "Particle Image Velocimetry, A Practical Guide", which was a very good help. Thanks to the thousands of publications that use



by Jed F.

A simple 'getOpts' type script to validate input parameters.

validateInput started when creating saveppt2. There was a need to take a large number of inputs, in any order, and make them usable to the script. Checking if an input argument has been passed can be

SVM Grid Search


by Dian Bahnev

Performing grid search for SVM, using the default Matlab toolbox.

kktviolatonlevel level. It gives as output array with the trained SVMs, array showing if a SVM was not able to be trained (converge), and the accuracy for the train, validation and test sets. The function is easy to

C++ MEX plugins to compute error functions (erf, erfc, erfi, erfcx, Faddeeva, ...) of complex args

C++ source code for compiled plugins (MEX files) to compute various error functions for complex arguments:** Faddeeva_erf(z) -- the error function** Faddeeva_erfc(z) = 1 - erf(z) -- complementary

Calculates the Mittag-Leffler function with desired accuracy.

This is a MATLAB routine for evaluating the Mittag-Leffler function with two parameters (sometimes also called generalized exponential function). The Mittag-Leffler function with two parameters plays

Function to convert rotation data between 4 types: DCM, Euler Angles, Quaternions, and Euler Param.

SpinCalc is a consolidated matlab function that will convert any rotation data between the 4 types included. Will also convert between 2 different Euler angle set types.Multiple orientations can be

DPX file reader


by Jeff Mather

A DPX file parser .

DPX is a high dynamic range file format used for digital motion picture stills and synthetic imagery. The readdpx function extracts image metadata and returns image pixels for each frame.The DPX


Version 3.0

by Jos (10584)

Wait a certain time for a single keypress

excution 0 is returned. Without argument, getkeywait waits until a key is pressed. [CH, RT] = getkeywait(..) returns the response time in seconds in RT. Example: disp('Press a key within 5

typecast and typecastx are mex functions that mimic the MATLAB typecast function with extensions

TYPECAST and TYPECASTX are mex functions intended to mimic the MATLAB intrinsic typecast function with extensions. These C-mex versions of typecast differs from the intrinsic typecast in the

Fits a 2D Gaussian function to simulated data.

The program generates a 2D Gaussian. The program then attempts to fit the data using the MatLab function “lsqcurvefit “ to find the position, orientation and width of the two-dimensional

Perfect Polar Plots

Version 1.0.0

by ET

Functions to generate fully customizable polar plots including compass orientation and circle segments.

Although current versions of Matlab do offer some polar plotting functionality, it isn't particularly flexible. "Perfect Polar Plots" is a few functions which can be used to create fully customizable


Version 2.0.2

by per isakson

m2uml generates UML class diagrams from m-code

: Custom documentation that is integrated in the Help Browser of Matlab.7. New: Extensive possibilities to customise the class diagram, e.g display input and output arguments of methods8. New: m2uml comes in

App and function to import signal data from MDF (Measure Data Format) files

This tool and function imports data from v3.0 MDF (.dat or .mdf) files to the MATLAB® workspace or MAT-file. Each signal comes in as a separate variable. Associated time vectors are also generated

Struve functions


by Theo2

Struve functions H0(z), H1(z), H0(z)-Y0(z), H1(z)-Y1(z) amd modified Struve functions L0(z), L1(z).

complex arguments. Additionally, routines are provided for the corresponding functions H0(z)-Y0(z) and H1(z)-Y1(z), useful for large z, and for the modified functions L0(z) and L1(z).These are high

Set of methods for generating Procrustes validation sets for PCA/SIMCA, PCR and PLS models.

Procrustes cross-validation is a new approach for validation of chemometric models. It makes possible to generate a new dataset, named "PV-set" and use it for validation of models in the same way as


Version 1.0.3

by Matthias Althoff

Toolbox for Reachability Analysis

Creates evaluable function handles for any function, possibly outside the MATLAB search path

If you ever found yourself in a situation where you could not or didn't want to add a directory to the MATLAB search path, but still needed speedy access to a function in that directory, this file is


Version 2.1

by Jos (10584)

Get a keypress

. Non-ascii keys (ctrl, alt, ..) return a NaN. CH is a double. CH = getkey(N) waits for N keypresses and returns their ASCII codes. getkey(1) is the same as getkey without arguments

PEMF cross-validation

Version 2016.1.0.0

by ADAMS Lab

PEMF is predictive (cross-validation type) approach to test surrogate models.

Predictive Estimation of Model Fidelity (PEMF) is a model-independent approach to measure the fidelity of surrogate models or metamodels, such as Kriging, Radial Basis Functions (RBF), Support Vector

newFunction creates an empty function with custom header

synopsis (make sure you type the function name in the correct case! You can also already list explanations for input and output argument, and you can choose whether it'll be a function or a class.Third

Prettify checking the number of arguments to a function.

nargchk is used almost exclusively in one way:error(nargchk(minargs, maxargs, nargin, 'struct'));The third and fourth arguments are always the same, and you always wrap it in an error call.This

This modified version makes the original xlsread.m faster and also allows add-ins to be loaded.

removing all instances of server open/close functions within the original file, as it was done with xlswrite1.m. Should one use xlswrite1.m in conjunction with the xlsread.m, the data transfer process still

Fast memory efficient alternative to API functions mxGetProperty & mxSetProperty.

m-file level. There were also two new mex API functions introduced at that same time: mxGetProperty and mxSetProperty. Unfortunately, both of these functions work with copies of the properties and not the

Evaluate a general piecewise function of one variable

2 <= x < 3, y = 6 3 <= x, y = inf y = piecewise_eval(-10:10,[-5 0 2 3], ... {2,'sin(x)','x.^2',6,inf})Plot a top hat function with ezplot?ezplot(@(x

Real valued alternative to the lambertw function in the Symbolic Toolbox.

See: http://blogs.mathworks.com/cleve/2013/09/02/the-lambert-w-function/

Calculation of real values of the Lambert W function

Toolbox already contains Maple's implementation of the W function. The Maple version accepts complex arguments, and gives results for complex branches of W.Syntax:[w,nerror] = wapr(x,nb,l,m);wherew = output

Polygamma function arbitrary order valid in the entire complex plane.

Polygamma function of arbitrary order valid in the entire complex plane. This is a generalization of the Psi (or digamma) function. Useful for summing infinite series.

S = FIELDFUN(FUN,S1,...,SN) passes field values in structures S1,...,SN to function FUN and returns the result in scalar struct S.

function's name or operator. The function must take N input arguments, i.e. equal to the number of input structures, and return a value. fun is called once for each field F in S1,...,SN.S1 is a scalar

Intersectm, ismemberm, setdiffm, setxorm, unionm with multiple inputs. Ex: intersectm(a,b,c,…).

Have you ever tried to find the common elements/rows to more than two sets without using a loop?Now you can with multiple-input set functions: Intersectm, ismemberm, setdiffm, setxorm, unionm.Brief

Computes/applies rotation about arbitrary 3D line.

] where R is a 3x3 rotation and t is a 3x1 translation vector. SYNTAX 2: [R,t]=AxelRot(deg,u,x0) Same as Syntax 1 except that R and t are returned as separate arguments. SYNTAX 3: This

This function can be used directly for inverse laplace transform of transfer functins

Inverse Laplace Transform Calculator for Transfer Function ClassesAllows taking laplace transform directly by using the transfer functionCoded by N. Dincer SaygiliExample: gt = ilaplacetf(G)Where G


Version 1.0.1

by Brian DuChez

Automated tracking of fluorescently labeled cells

Presented Algorithm segments blood vessels of retinal image with a high degree of accuracy

every pixel of the Gaussian filtered Image.After some contrast enhancement final segmented image is obtained using ISO Data thresholding. This algorithm is validated using images in drive database .

Panic Simulator


by Julian

Simulates panic behaviour in modifiable rooms with one exit

MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions."

numbersChebyshev, Laguerre, and Hermite polynomialsGauss-Legendre quadratureGauss-LaguerreGauss-Hermitegamma function.logarithm of the gamma function.gamma function with a complex argument.beta function

A pair of Symmetrical Components to Phasor and Vice Versa Conversion Functions

% sc2ph converts symmetrical components to phasor% vabc = sc2ph(v012) returns phasor in 3-by-2 matric of phase A, B, C and % its respective angle in degree%% Input Argument% v012 = [zero sequence

This submission demonstrates Power Plant Model Validation as applied to online performance monitoring of grid events

This submission demonstrates Power Plant Model Validation as applied to online performance monitoring of grid events using phasor measurement unit (PMU) data, through a workflow that includes both

This function creates two cell arrays, one with training data and the other with testing data.

. Check the functions help section for more details.Cites:https://en.wikipedia.org/wiki/Cross-validation_(statistics)

Files from the webinar can be viewed at http://optinum.co.za/_webinar/BloombergEMSXandMATLAB.mp4

Standard atmosphere gas properties. Support for n-dim inputs, non-standard atmospheres, units, etc.

Standard atmosphere functions based on the 1976 Standard Atmosphere. Returns density, speed of sound, temperature, pressure, and viscosity for a given altitude input up to 86 km. Functions are

This function evaluates the upper incomplete gamma function

GAMMA_INCOMPLETE evaluates the upper incomplete gamma function (incomplete gamma function of the second kind) $\Gamma(a,x)$ at non-negative values of the argument. This function extends the MATLAB

Load more