image thumbnail

updated 10 hours 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 3 days ago

OpenCV-Matlab by Boris Schauerte

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

image thumbnail

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

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

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

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

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

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

image thumbnail

updated 8 months ago

N_PERMUTE_K by Matt Fig

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

npermutek(N,K)

image thumbnail

updated 1 year ago

Universal MEX wrapper by Thomas

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

dl_check(symbol)

dl_exec(funName, varargin)

dl_load(libPath, varargin)

image thumbnail

updated 1 year 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, imag_...

image thumbnail

updated 1 year 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 (article, object oriented, tree)

test_RedBlackTree

NodeVisitor

RedBlackTree

image thumbnail

updated 1 year 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 (wireless, article, matlab)

[BER, errors]=btint(varargin)

arg=getArg(argPosition,vararg_in,default)

rsrc=setRSRCpulseShapingFilter(rsrc, rollOff)

image thumbnail

updated 1 year 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. (log file, deployment, mcc)

sendmessages(info, warn, err)

image thumbnail

updated 1 year ago

Faster/parallel random number generator via standard C++ by Peter Li

Mersenne Twister from Boost Random: same as modern Matlab, faster. Plus flexible distributions! (random number, monte carlo, mersenne twister)

image thumbnail

updated 1 year ago

nth_element by Peter Li

MEX wrap of C++ nth_element. Plus fast_median, a faster median function. Also can operate in-place. (cpp, median, selection algorithm)

fast_median.m

fast_median_ip.m

nth_element.m

image thumbnail

updated 1 year ago

arrayadapt by Armin Schmidt

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

image thumbnail

updated almost 2 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 2 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, deploy, type safe)

polygonal(tN, pN, hN)

image thumbnail

updated almost 2 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 2 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 2 years ago

Managing Deployed Application Output with Message Handlers by Peter Webb

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

sendmessages(info, warn, err)

image thumbnail

updated 2 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 2 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 2 years ago

Deploying a Shared Library by Peter Webb

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

decrypt(ciphertext, key)

encrypt(plaintext, key)

vigenere

image thumbnail

updated 2 years ago

isValidSymbol by Jan Simon

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

isValidSymbol(S) %#ok<INUSD,STOUT>

uTest_isValidSymbol(doSpeed)

image thumbnail

updated 2 years ago

Ideal Rankine Cycle Builder for .NET Component in C# Application by David Forstot

Calculate thermodynamic properties of ideal Rankine cycle: MATLAB and C# - Using MWStructArray. (mwstructarray, mwarray, c)

Out=XSteam(fun,In1,In2)

rankine(indata)

build_mcode.m

image thumbnail

updated almost 3 years ago

C# Matlab Program Launcher by Amitabh Verma

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

ImagePatchTool.m

image thumbnail

updated 3 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 3 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 3 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. (cpp, mex, c)

example_linalg

example_sparse

example_sqdist2()

image thumbnail

updated 3 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 3 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, c, compiler)

makebitmap(y, width, height, ThreeDee)

makefigure(y, ThreeDee, PlotOrClose)

makesquare(x)

image thumbnail

updated 3 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 4 years 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 almost 4 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 4 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, memory, delete)

demo.m

make.m

image thumbnail

updated 4 years ago

OpenGL .NET Examples by Dirk-Jan Kroon

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

CamLight_Cube_Painters(id)

I=texture2matlab(TextureID,Width,Height)

LoadTaoOpenGl.m

image thumbnail

updated 4 years ago

keyboard simulation by morteza ahmadi

controlling keyboard (keyboard, windows, simulation)

example

keyboard_simulation(keyboard_string)

m_ex.m

image thumbnail

updated 4 years ago

mouse simulation by morteza ahmadi

mouse controlling (mouse, windows, simulation)

example

mouse_simulation(n,mouse_button)

image thumbnail

updated 4 years ago

C++ MEX symbolic debugging by michaelB brost

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

image thumbnail

updated 4 years ago

Image Processing Subset by Anthony Gabrielson

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

buildMex(filename, enblDbg)

image thumbnail

updated 4 years ago

Typical Control System Analyst(.exe) by Jie Deng

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

image thumbnail

updated almost 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 (engine, debug, c)

draw_points (pnts)

image thumbnail

updated almost 5 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 5 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 5 years ago

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

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

icpCpp(model,data,weights,randvec,sizerand,treeptr,iter)

icp_demo.m

kdtree.m

image thumbnail

updated 5 years ago

Tutorial: C mex matrix demo by Nick Clark

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

image thumbnail

updated 5 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 (activex, functions, dot)

ComMatlabtest.m

MatlabGUItest.m

image thumbnail

updated 5 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. (api, net, io)

image thumbnail

updated almost 6 years ago

Huffman by Jaun Dough

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

huffman(D,W,varargin)

demo.m

image thumbnail

updated 6 years ago

Erlang B and C probabilities by Brian Borchers

Computes Erlang B and C probabilities (erlang, b, statistics)

B=erlangb(n,rho)

C=erlangc(n,rho)

E=engset(m,n,rho)

image thumbnail

updated 6 years ago

File I/O C S-function Example by Jarrod Rivituso

A simple C S-function which reads data from a file during simulation. (data import, c, cmex)

filetest

Contact us