image thumbnail

updated 2 days ago

findInRange by Joseph O'Doherty

Find elements within many ranges. Faster than find() for large N. Useful for PSTHs and rasterplots. (neuroscience, psth, rasterplot)

findInRange.m

image thumbnail

updated 17 days ago

Call_C_Function_from_MATLAB.zip by James D.B. Wang

An simple example to show how to execute C-function in MATLAB environment (mex, c)

Run_MEX_CinM_Test_2014_0828_1.m

image thumbnail

updated 19 days ago

crobarcro/mcode-cpp-utilities by Richard Crozier

C++ class wrapper and utilities (mex, c, example)

image thumbnail

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

image thumbnail

updated 3 months ago

Robust solver for Lambert's orbital-boundary value problem by Rody Oldenhuis

Solves any Lambert-problem robustly. Can be compiled to increase efficiency. (orbital mechanics, space, space mechanics)

image thumbnail

updated 3 months ago

XSum by Jan Simon

Fast Sum with error compensation (sum, error, compensated)

InstallMex(SourceFile, varargin)

XSum(varargin)

image thumbnail

updated 3 months ago

Skipping Stone - An interplanetary space mission design tool by Rody Oldenhuis

An easy-to-use tool to optimize trajectories for interplanetary missions using swingby manoevres (aerospace, satellite, space mission)

image thumbnail

updated 5 months ago

Levenshtein Distance Fast (MEX) C++ by Hanan Shteingart

Computing the Levenstein distance between strings fast in matlab using external mex c++ code (levenshtein distance, mex, c)

image thumbnail

updated 5 months ago

savepng by Stefan Slonevskiy

savepng is a fast PNG image compression routine that outperforms MatLab's built-in imwrite (png, mex, image)

image thumbnail

updated 5 months ago

MRiLab v1.2 by Fang Liu

A Numerical Simulation Platform for Magnetic Resonance Imaging (MRI) (medical imaging, medical, mri)

ADCRadial.m

AboutMRiLab(varargin)

About_MU(varargin)

image thumbnail

updated 6 months ago

Setting Microsoft Visual C++ 2013 as default MEX compiler by Adeel Ahmad

Configuration files for setting Microsoft Visual C++ 2013 as default compiler for MEX (x86/x64) (mex, compiler, visual studio 2013)

image thumbnail

updated 7 months ago

CUDA_MEX_CMake by Fang Liu

An Example of Compiling MEX with CUDA GPU support using CMake (mex, cuda, gpu)

image thumbnail

updated 7 months ago

MEX_CMake by Fang Liu

Compile MEX using CMake (mex, cmake, c programming)

image thumbnail

updated 7 months ago

OpenMP_MEX_CMake by Fang Liu

An Example of Compiling MEX with OpenMP support using CMake (mex, openmp, cmake)

image thumbnail

updated 9 months ago

nthperm by Peter Li

Directly compute Nth lexicographic permutation (permutation, mex, c)

nthperm(v, n)

image thumbnail

updated 9 months ago

Fast batch generation of permutations by Peter Li

Get next block of lexicographic permutations of input vector (permutation, combinatorics, mex)

nextperms.m

nextperms_example_script.m

image thumbnail

updated 10 months ago

Matlab mex support for Visual Studio 2013 (and mbuild) by Petter

Adds mex support for Microsoft’s latest compiler. (mex)

image thumbnail

updated 10 months ago

nth_element by Peter Li

MEX wrap of C++ nth_element. Plus fast_median, a faster median function. In-place and parallel. (nth_element, c, mex)

fast_median.m

fast_median_ip.m

nth_element.m

image thumbnail

updated 11 months ago

C/C++ and Matlab types convertor by sun peng

Bidirectional conversion between C/C++ type (STL, openCV) and Matlab matrix (compile or run time) (external interface, c, mxarray)

draw_points (pnts)

main.m

main.m

image thumbnail

updated 11 months ago

interp_linear_c by Felipe G. Nievinski

C/MEX linear and bi-linear interpolation for regularly spaced data (linear, bilinear, interpolation)

interp1_linear_c.m

interp2_linear_c.m

image thumbnail

updated 1 year ago

Matlab Wrapper for OpenNI 2.2 by Camillo Taylor

A very simple wrapper that provides an interface to RGBD cameras through OpenNI v2.2 (2d3, 3d, anyone tried to compi...)

compile_script.m

image thumbnail

updated 1 year ago

mexPutVariableSharedDataCopy by James Tursa

This C routine puts a shared data copy of a variable into a workspace from a mex routine (mex, mexputvariable, mexputvariablesharedd...)

mexPutVariableSDCtest(varargin)

image thumbnail

updated 1 year ago

Kinect Matlab by Dirk-Jan Kroon

Microsoft Kinect, OpenNI wrapper, Skeleton, Depth (kinect, microsoft, skeleton)

J=imagemax(Iin)

[I_SSD,I_NCC]=template_matching(T,I)

compile_cpp_files(OpenNiPath)

image thumbnail

updated 1 year ago

OpenCV-Matlab by Boris Schauerte

OpenCV-Matlab is a C++ template library to convert between Matlab and OpenCV images (opencv, mex, conversion)

build_opencv_matlab_mex.m

opencv_matlab_mex_demo.m

image thumbnail

updated 1 year ago

Write STL C++ Mex function by Arso

c++ mex function for writing ASCII stl file from nodes and triangles list (c, mex, stl)

test

image thumbnail

updated 1 year ago

Joystick MEX file by Peter Corke

Portable joystick MEX file using SDL (joystick, mex)

image thumbnail

updated 1 year ago

Real time optical flow, and video processing by Stefan Karlsson

Real time optical flow, and video processing, with support for camera input in Matlab. (motion estimation, optical flow, tracking)

DoEdgeStrength(dx,dy,gradInd)

DoFlow(dx,dy,dt,method)

DoFlowPL(dx,dy,dt)

image thumbnail

updated 1 year ago

Recursive Directory Searching for Multiple File Specs by Jonathan Sullivan

Searches a directory for multiple file specs with optional recursivity (dir, recursive, files)

dir2(dn,varargin)

image thumbnail

updated 1 year ago

KeyInject by Phillip

Send key strokes to any window from within Matlab (key stroke, send, window)

keyInject(windowName,sendString,returnWindow)

image thumbnail

updated 1 year ago

findNlargest by Mattias Karlsson

Finds the N largest values in the input. Very fast. (optimization, mathematics, mex)

findNlargest.m

image thumbnail

updated 1 year ago

Example MATLAB class wrapper for a C++ class by Oliver Woodford

An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. (c, mex, wrapper)

class_interface

image thumbnail

updated 1 year ago

findNsmallest by Mattias Karlsson

Finds the N smallest values in the input. Very fast. (mex, min, fast)

findNsmallest.m

image thumbnail

updated almost 2 years ago

mod_mex by Olaf

FORTRAN 90 modules with interface declarations for the MATLAB API (mex, fortran90api)

image thumbnail

updated almost 2 years ago

mexme - write MEX files in no time by Patrick Mineault

writes fully valid MEX .cpp files including mexFunction boilerplate based on numeric C/C++ snippet (mex, c, compiled code)

mexme(cstring,inputargs,outputargs,opts)

myrecursivefilter(x,alpha)

parseTemplate(str,varargin)

image thumbnail

updated almost 2 years ago

mex setup for windows x64 intel c compiler 13 (XE) by Igor

mex -setup icc13 linker options (external interface, intel c compiler, mex)

image thumbnail

updated almost 2 years ago

ICC_mex_tools by Igor

These tools provide a simple interface to Intel C++ compiler optimization features. (icc_mex_tools, external interface, intel c compiler)

mex_ICC_O3(config)

mex_ICC_PGOgen(config)

mex_ICC_PGOuse1(config)

image thumbnail

updated almost 2 years ago

MS Visual Studio property sheet for building MEX function by Kesh Ikuma

Using Property Sheet to make VS project configuration easy (mex, development, visual studio)

image thumbnail

updated almost 2 years ago

Fast String to Double Conversion by Quant Guy

str2doubleq converts text to double like Matlab's str2double,but up to 400x faster! multithreaded. (data import, finance, mex)

test_str_to_double_performance()

image thumbnail

updated 2 years ago

MexThread by Thomas Weibel

Using std::thread in MEX files for expensive data processing without freezing Matlab. (mex, background processing, image processing)

MexThread

demoGaussianBlurThread.m

image thumbnail

updated 2 years ago

mxArrayIndexingClass by Mirko Kunze

mxArray indexing class for mex-file programming (matrix, mex, multidimensional)

runtestarrayclass.m

image thumbnail

updated 2 years ago

rook pivoting by Leslie Foster

LURP: Gaussian elimination with rook pivoting using efficient Fortran and MATLAB mex code (rook pivoting, lu factorization, rook)

lurp_install

lurp_test(tol,m)

lurp_test_SJ(tol,nsamples)

image thumbnail

updated 2 years ago

Ray Tracing Volume Renderer by Scott Robertson

Renders a 3D volume according to a intensity indexed color map and opacity map via ray tracing. (medical imaging, image processing, volume rendering)

ParallelRayGenerator3d(volume,dimx,dimy,raystep)

volumeRenderDemo.m

image thumbnail

updated 2 years ago

Universal MEX wrapper by Thomas

Call any function in a shared library from Matlab (with some limits on the function signature). (mex, c, fortran)

dl_check(symbol)

dl_exec(funName, varargin)

dl_load(libPath, varargin)

image thumbnail

updated 2 years ago

Segments Intersection Test Functions by Francesco Montorsi

Functions that count the intersections among 2-D segments. Special cases are accounted for. (segment, 2d, intersection)

test_segments_intersect

image thumbnail

updated 2 years ago

Check whether mex file is compiled for system by Christopher Hummersone

Check if mex file is compiled for the OS or if the source was modified since it was compiled. (mex, compile)

check_mex_compiled(varargin)

image thumbnail

updated almost 3 years ago

Interface to a LBFGS solver by Arne Vagren

Matlab interface to a LBFGS-code for solving unconstrained minimization problems. (1norm, lbfgs, mex)

lbfgs(f,x0,options)

objective(x,varargin)

example.m

image thumbnail

updated almost 3 years ago

Fortran 95 Interface to MATLAB API with extras! by James Tursa

This is the one you have been waiting for, a clean interface using assumed shape Fortran pointers. (fortran 95, fortran, 95)

MatlabAPI_build_cvf61.m

MatlabAPI_build_cvf66.m

MatlabAPI_build_intelf10msvs2005.m

image thumbnail

updated almost 3 years ago

Kinect Microsoft SDK by Dirk-Jan Kroon

Video, Audio, Depth Stream and Skeleton tracking (microsoft sdk, 2d, 3d)

compile_cpp_files(MicrosoftSDKPath)

Example.m

ExampleMicrophone.m

image thumbnail

updated 3 years ago

Hadamard transform c mex implementation by Peter Stobbe

C implementation of Hadamard transform (signal processing, hadamard, mex)

image thumbnail

updated 3 years ago

Kinect SDK with Matlab by Yu-Hsin

Mex-file with pure "Kinect for Windows SDK" implementation. (kinect, microsoft, mex)

Kinect()

Contact us