MATLAB Coder converting from classes of MATLAB to C/C++?

1 view (last 30 days)
MATLAB contains several classdef with properties and methods. In converting to C/C++ from MATLAB through MATLAB Coder, Coder gives error message “All entry-point files must be fun functions. ABC.m is a class”.
Should I rewrite the classes in classdef into separate methods? Are there better approaches for converting from classes of MATLAB to C/C++?

Answers (1)

Walter Roberson
Walter Roberson on 9 Dec 2015
You need to have a "function" .m which calls your class.

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!