image thumbnail

updated 8 days ago

Files Associated with the Video "Creating a Simulink Block Using MATLAB Code" by MathWorks Student Competitions Team

The files in this submission are used in the video "Creating a Simulink Block Using MATLAB Code" (customization, simulink, block)

getTouchSensorRootPath()

TouchSensor

image thumbnail

updated 1 month ago

nasa/T-MATS by Jeffryes

Simulink Toolbox for the Modeling and Analysis of Thermodynamic Systems, such as gas turbines (simulation, simulink, example)

image thumbnail

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

crobarcro/mcode-cpp-utilities by Richard Crozier

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

image thumbnail

updated 6 months ago

mattoboost.zip by Ricardo Monroy

Matlab matrix to C++ Boost matrix (c, boost)

mattoboost(matrix,filename)

sample.m

image thumbnail

updated 6 months ago

MVTec Halcon Wrapper by Dirk-Jan Kroon

MVTec Halcon function mex-wrapper (mvtec, halcon, medianimage)

tline_old;

compile_cpp_code.m

generate_help_files.m

image thumbnail

updated 8 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 12 months ago

nthperm by Peter Li

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

nthperm(v, n)

image thumbnail

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

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

arrayadapt by Armin Schmidt

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

image thumbnail

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

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

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

keyboard simulation by morteza ahmadi

controlling keyboard (keyboard, windows, simulation)

example

keyboard_simulation(keyboard_string)

m_ex.m

image thumbnail

updated almost 6 years ago

mouse simulation by morteza ahmadi

mouse controlling (mouse, windows, simulation)

example

mouse_simulation(n,mouse_button)

image thumbnail

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

Typical Control System Analyst(.exe) by Jie Deng

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

image thumbnail

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

ViewerTools by Christian Bard

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

Contact us