How to convert a method function in class into C++ using matlab coder

For example in the simple class above,if I want to convert the methods myAdd in myClass into C++ using matlab coder,how to achieve it。
classdef myClass < handle
properties
x
y
end
methods
function obj = myClass(a, b)
obj.x = a;
obj.y = b;
end
function sum = myAdd(obj)
sum = obj.x + obj.y;
end
end
end

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangePhased Array System Toolbox についてさらに検索

質問済み:

2018 年 1 月 29 日

Community Treasure Hunt

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

Start Hunting!