Mex Routine
Radix-4 FFT Test ScriptThis file runs three versions of a Radix-4 FFT written in MATLAB: radix4FFT1_Float.m computes a radix-4 FFT for floating point data types radix4FFT2_FixPt.m computes a fixed point radix-4 FFT (requires Fixed Point Toolbox) radix4FFT3_FixPtEML.m is an Embedded MATLAB version...
Platforms: Matlab
License: Freeware | Size: 61.44 KB | Download (48): Fixed Point Radix-4 FFT Download |
This routine implements Hankel transforms of integer order based on a Fourier-Bessel series expansion. The algorithm is based on a recently published research work:M. Guizar-Sicairos and J. C. Gutierrez-Vega, Computation of quasi-discrete Hankel transforms of integer order for propagating optical...
Platforms: Matlab
License: Freeware | Size: 92.16 KB | Download (51): Integer order Hankel transform Download |
This function opens a figure on screen. While in the figure, mouse button toggles the function on and off. While ON, the function samples and filters the mouse current location (in Realtime), and present both original and filtered points.This function was created as a routine University homework....
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Mouse Point Location Sampler Download |
The Linux Soft Real-Time Target is a target definition to Real-Time Workshop from Mathworks. The target uses the POSIX real-time clocks to generate periodic signals, to wake the model process at every time step. The process is changed to real-time highest priority defined by the scheduler, and...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (54): Linux Soft Real-Time Target Download |
This mex file implements vectorized FFTs on multiple threads. When a matrix is passed to FFTmt, it is divided in "numCPU" and each fraction of the problem is executed in a separate threadExample: if numCPU = 2 and the matrix has 256x2^14 elements, 128 FFTs are performed in each thread, allowing...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (51): FFTmt Download |
simulatedannealing() is an optimization routine for traveling salesman problem. Any dataset from the TSPLIB can be suitably modified and can be used with this routine. A detailed description about the function is included in "Simulated_Annealing_Support_Document.pdf."A GUI is used with the core...
Platforms: Matlab
License: Freeware | Size: 512 KB | Download (49): Traveling Salesman Problem (TSP) using Simulated Annealing Download |
Download the C-MEX version from my website: http://www.wordeazy.com
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Sphere Decoder for MIMO Systems Download |
This script plots the polarization Stokes vectors (S1, S2, S3) on a Poincare sphere. See "Polarized Light" by Collett (publ. Dekker) for a background on the optics.Type "poincare" at the Matlab prompt and a graphical window should pop up. Enter an input data file in the GUI, then lick "Plot". You...
Platforms: Matlab
License: Freeware | Size: 256 KB | Download (49): Poincare Sphere Plot of Polarimetry Stokes Vectors Download |
This include a MEX-DLL file which is an implementation of R L Siddon's refined method by Jacob for the calculation of ray path integral in PET/CT system image reconstruction. This is based on Line Intersection Length model to calculate probability matrix elements. Inputs are the LOR number and a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (52): PET reconstruction system matrix Download |
This is an extremely fast implementation of the famous Hungarian algorithm (aslo known as Munkres' algorithm). The new version (V2.2)is about 1.5 times faster than the old version (V2.1). It can solve a 1000 x 1000 problem in about 20 seconds in a Core Duo (T2500 @ 2.00GHz) XP laptop with Matlab...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Hungarian Algorithm for Linear Assignment Problems (V2.2) Download |
Even if totally m-coded, this routine is particularly fast in computing convex hull of 2D points. In many cases seems to be much faster than the matlab library routine. The main reason is that, differently from convhull, this algorithm jumps the call to unique function which can be very slow for...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): FAST CONVEX HULL ALGORITHM Download |
1 Introduction This toolbox implements all the routine PLS-related/based algorithms which kind of serves as the basics in chemometrics, including PLS calibration and prediction, leave one out cross validation (LOOCV), K-fold cross validation, Monte Carlo cross validation(MCCV), double cross...
Platforms: Matlab
License: Freeware | Size: 440.32 KB | Download (50): Toolbox: partial least squares and CARS for variable selection Download |
The bulirsch-Stoer single-step ODE propagator has come to MATLAB in form of a MEX adaptation of Juergen Dietel's Numerical ODE solver. This may very well be the fastest single-step numerical propagator released on the Mathworks FileExchange.All functions are written in c++ and must be compiled to...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (44): Bulirsch-Stoer Propagator/Integrator Download |
Fit a multivariate gaussian mixture by a cross-entropy method. Cross-Entropy is a powerfull tool to achieve stochastic multi-extremum optimization.Please visit http://iew3.technion.ac.il/CE/ for more informationsi) Please compile mex-files by the mexme_ce_gauss.m (if compiler is not setup, run...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (47): Multivariate Gaussian Mixture Model Optimization by Cross Entropy Download |
This function computes the Modified Hausdorff Distance (MHD) which isproven to function better than the directed HD as per Dubuisson et al.in the following work:M. P. Dubuisson and A. K. Jain. A Modified Hausdorff distance for objectmatching. In ICPR94, pages A:566-568, Jerusalem, Israel,...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): *MEX* Modified Hausdorff Distance for 2D Point Sets Download |
Our basic idea is based on (n,k)-gray code which was introduced in one paper named :"Generalized Gray Codes with Applications". Our extention is allowing each digit ranged from different digit which is widely useful in some situations.For example, (3,2)-Gray code is (0,0), (0,1),...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): Extended (n,k)-gray code Download |
fitChiSquare is a generalized chi-square fitting routine for any model function when data measurement errors are known; it returns the model parameters and their uncertainties at the delta chi-square = 1 boundary (68% confidence interval). It also returns the chi-square and degrees of freedom...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (41): Generalized Nonlinear Non-analytic Chi-Square Fitting Download |
In order to optimize any MATLAB function, there are two options: 1) rewrite the function to take only 1 array of inputs, reading all others from a file, perhaps, or from a global variable (undesirable), or 2) write an interface layer that handles this.This function provides an interface layer...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Generalized Objective Function Download |
This function (fit.m) is a simple interface to MATLAB's 'fminsearch' routine. It allows the user to specify which parameters to be set free, and which to be held constant.Run 'FitDemo.m' for a demonstration.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): fminsearch interface Download |
This program calculates and plots the photonic bands for a 2D photonic crystal consisting of cylinders with circular cross-section and infinite height, arranged in a triangular lattice; we consider in-plane propagation and two independent polarization states: E-pol and H-pol (E-field and H-field...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (50): Photonic bands for a 2D photonic crystal Download |