How to run Main.mexa64

How to run c++ code to Main.mexa64 in Matlab.
Like i want to give input to c++ function and return value from c++ function.
Example:
in console
a=3
t=input a to Main.mexa64
t=somevalue return.

Answers (1)

As long as Main.mexa64 is on your path so MATLAB can see it:
t = Main(a);

Categories

Find more on Programming in Help Center and File Exchange

Asked:

on 13 Dec 2018

Answered:

on 13 Dec 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!