Skip to content

hanzhichao2000/CppCallMatlabCmakeExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

An example for cpp code to call Matlab functions, built with CMake in Linux.

Usage

  1. Compile demo.m and demo2.m as a matlab library. A directory demo should exist in the current directory.
  2. Define an environment variable $MATLABROOT indicating the root of Matlab, e.g. /usr/local/MATLAB/R2014a.
  3. mkdir build && cd build && cmake .. && make

About

An example for cpp code to call Matlab functions, built with CMake in Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published