image thumbnail

updated 4 months ago

nthperm by Peter Li

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

nthperm(v, n)

image thumbnail

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

xxd (hexdump) by Boris Schauerte

xxd provides a data export interface to C/C++ headers by generating a static C/C++ array definition (c, data export, hex dump)

xxd(data,name,fid)

xxd_demo.m

image thumbnail

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

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

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 1 year ago

MATLAB Implementation of Harmonic ANalysis of Time Series (HANTS) by Mohammad Abouali

Harmonic ANalysis of Time Series (HANTS) (harmonic analysis, time series, compression)

[Data]=ReconstructImage(amp,phi,nb)

[amp,phi,yr]=HANTS(ni,nb,nf,y,ts,HiLo,low,high,fet,dod,de...

[yOut, amp, phi]=ApplyHants(y,nb,nf,fet,dod,HiLo,low,high...

image thumbnail

updated 1 year ago

N_PERMUTE_K by Matt Fig

All possible permutations of the elements of set N, taken K at a time, with repetition. (permutations, combinations, multisets)

npermutek(N,K)

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

Nth_Oct_Hand_Arm_&_AC_Filter_Tool_Box by Edward Zechmann

Features Nth octave band, Hand Arm, and A and C weighting filters (noise, nth octave, octave)

ACdsgn(Fs)

Test_Nth_oct_filters1(resample_filter)

[A2, A_str, real_digitsL, real_digitsR, imag_digitsL, ima...

image thumbnail

updated 2 years ago

Comparison of C++, Java, Python, Ruby and MATLAB Using Object Oriented Example by Stuart McGarrity

RedBlack Tree Binary Search Example Used to Compare of C++, Java™, Python, Ruby and MATLAB® Code (whitepaper, article, paper)

test_RedBlackTree

NodeVisitor

RedBlackTree

image thumbnail

updated 2 years ago

Comparison of C++ and MATLAB Using Object Oriented Application Example by Stuart McGarrity

Wireless Communications Application Example Used to Compare C++ and MATLAB® Code (whitepaper, article, paper)

[BER, errors]=btint(varargin)

arg=getArg(argPosition,vararg_in,default)

rsrc=setRSRCpulseShapingFilter(rsrc, rollOff)

image thumbnail

updated 2 years ago

Liberating Deployed Application Output from the Console Window by Peter Webb

Source code for "Art of MATLAB" blog posts describing how to manage output in deployed applications. (c, matlab compiler, mcc)

sendmessages(info, warn, err)

image thumbnail

updated 2 years ago

arrayadapt by Armin Schmidt

A C++ wrapper class for MATLAB's mxArray type (mex, c, matrix)

image thumbnail

updated almost 3 years ago

Using MATLAB Structures in C# with Builder NE by Peter Webb

Code for the "Art of MATLAB" post - shows how to pass structures between MATLAB and C#. (type safe, builder ne, type safe api)

computeOrbit(planet)

image thumbnail

updated almost 3 years ago

Multiple Inputs and Outputs in Builder NE Type Safe APIs by Peter Webb

Example code for the "Art of MATLAB" blog post of the same name. (builder ne, c, deploy)

polygonal(tN, pN, hN)

image thumbnail

updated almost 3 years ago

Introducing Type Safe APIs with Builder NE by Peter Webb

Example code for initial type safe API post in the "Art of MATLAB" blog. (type safe api, type safe, deploy)

multiply(x, y)

image thumbnail

updated 3 years ago

Deploying the ver Command by Peter Webb

Example code for "Deploying the ver Command" post in the "Art of MATLAB" blog. (ver, deploy, deployment)

classify(language)

islogoconsonantal(language)

islogographic(language)

image thumbnail

updated 3 years ago

Managing Deployed Application Output with Message Handlers by Peter Webb

Example code for "Managing Deployed Application Output with Message Handlers". (deploy, deployment, c)

sendmessages(info, warn, err)

image thumbnail

updated 3 years ago

Convert Matlab SOS filters to C# by James Squire

Converts Matlab SOS filters into a fast C# class (c, filter)

sos2csharp(H, filename)

image thumbnail

updated 3 years ago

Deploying Multiple Shared Libraries by Peter Webb

Example code for "Deploying Multiple Shared Libraries" post in the "Art of MATLAB" blog. (mandelbrot, fractal, libraries)

m=mandelbrot(width, iterations)

showimage(im)

image thumbnail

updated 3 years ago

Deploying a Shared Library by Peter Webb

Example code for "Deploying Shared Libraries" posting in the "Art of MATLAB" blog. (vigenere, cryptography, cipher)

decrypt(ciphertext, key)

encrypt(plaintext, key)

vigenere

image thumbnail

updated 3 years ago

isValidSymbol by Jan Simon

Check for valid variable, field or function name - fast C-Mex (valid, variable name, function name)

isValidSymbol(S)

uTest_isValidSymbol(doSpeed)

image thumbnail

updated almost 4 years ago

C# Matlab Program Launcher by Amitabh Verma

Code to execute Matlab script or function without the requirement to launch Matlab manually. (c, c sharp, launcher)

ImagePatchTool.m

image thumbnail

updated almost 4 years ago

C++ class to write HDF5 .mat files. by Tim

This is a small C++ class that lets you write matrices, vectors and values to a .mat file. (hdf5, mat, save)

image thumbnail

updated 4 years ago

Patch Software Render by Dirk-Jan Kroon

Patch Software Render with Phong-shading, shadows and textures (software render, render, renderer)

FV=read_wobj(filename)

J=renderpatch(I,FV)

N=patchnormals(FV)

image thumbnail

updated 4 years ago

Utilities for MEX files by Levente Hunyadi

C utility functions to simplify writing MEX source files and a make command to build them. (mex, make, c)

example_linalg

example_sparse

example_sqdist2()

image thumbnail

updated 4 years ago

C-style MATLAB preprocessor by Misha Koshelev

Simple, only supports ifdef/endif/else with define/undef, simple syntax for &&/||. (preprocessor, c)

[varargout]=mpp(fn,varargin)

image thumbnail

updated 4 years ago

Using MATLAB(R) visualization in a .NET PictureBox by Martti

How to bring bitmap data generated from a MATLAB(R) figure into a C# application. (builder ne, net, c)

makebitmap(y, width, height, ThreeDee)

makefigure(y, ThreeDee, PlotOrClose)

makesquare(x)

image thumbnail

updated 4 years ago

C2Mat by Peter Barnum

C2Mat allows OpenCV data structures to be transferred between C++ and Matlab. (c, opencv, data import)

image thumbnail

updated almost 5 years ago

struct_read/struct_write by Val Schmidt

Functions to ease the reading and writing of C data structures from and to binary files. (c, structure, binary)

struct_read(fid,format)

struct_write(fid,format,data)

image thumbnail

updated almost 5 years ago

Use C++ "new" and "delete" in MATLAB MEX files by Petter

This code modífies "new" and "delete" to register all allocated memory with the memory manager. (c, new, delete)

demo.m

make.m

image thumbnail

updated 5 years ago

OpenGL .NET Examples by Dirk-Jan Kroon

Matlab OpenGL .NET code and examples for R2009a and above (opengl, net, control)

CamLight_Cube_Painters(id)

I=texture2matlab(TextureID,Width,Height)

LoadTaoOpenGl.m

image thumbnail

updated 5 years ago

keyboard simulation by morteza ahmadi

controlling keyboard (keyboard, windows, simulation)

example

keyboard_simulation(keyboard_string)

m_ex.m

image thumbnail

updated 5 years ago

mouse simulation by morteza ahmadi

mouse controlling (mouse, windows, simulation)

example

mouse_simulation(n,mouse_button)

image thumbnail

updated 5 years ago

C++ MEX symbolic debugging by michaelB brost

Tutorial: Microsoft C++ IDE setup directions for compiler and linker for symbolic MEX debugging. (tutorial, mex, c)

image thumbnail

updated 5 years ago

Image Processing Subset by Anthony Gabrielson

I have started to write a subset of the Image Processing toolbox. (signal processing, image processing, data export)

buildMex(filename, enblDbg)

image thumbnail

updated 5 years ago

Typical Control System Analyst(.exe) by Jie Deng

Typical Control System Analyst compiled by visual c++ (c, control, pid)

image thumbnail

updated 5 years ago

C++ raw data dumper by sun peng

Dump C++ data into Matlab to make debugging C++ program more easily. Handier than using engine APIs (data import, data export, c)

draw_points (pnts)

image thumbnail

updated almost 6 years ago

ViewerTools by Christian Bard

Utility designed to help adding a "Tools" menu in The PolySpace® Viewer (polyspace, viewer tools, utility)

image thumbnail

updated almost 6 years ago

Generate Arrays by Marco Zuliani

Converts a Matlab array to C and LaTeX (development environme..., latex, c)

generate_C_array(a, name, Nepl)

generate_LaTeX_array(a, name, format)

image thumbnail

updated almost 6 years ago

Iterative Closest Point Method, C++ by Per Bergström

ICP fit points in data to the points in model. (optimization, icp, iterative closest poi...)

icpCpp.m

icp_demo.m

kdtree.m

image thumbnail

updated 6 years ago

Tutorial: C mex matrix demo by Nick Clark

Index matrix in C like you would do in MATLAB! (optimization, array, vectorize)

image thumbnail

updated 6 years ago

Using C# functions and forms in Matlab by Dirk-Jan Kroon

This script shows how C# functions/classes can be used in Matlab (external interface, c, dot)

ComMatlabtest.m

MatlabGUItest.m

image thumbnail

updated 6 years ago

CSMatIO: MAT-file I/O API for .NET 2.0 by David Zier

Package contains Matlab's MAT-File I/O API for .NET 2.0. Supports Matlab 5 MAT-file format. (external interface, mat, matfile)

image thumbnail

updated almost 7 years ago

Huffman by Jaun Dough

Generates a static minimum-variance Huffman code tree. (coding theory, information theory, huffman)

huffman(D,W,varargin)

demo.m

Contact us