C++においてmxArrayにデータ格納する方法
Show older comments
MATLAB Compiler SDKを使用して、行列(a1, a2)の加算をするdllを作成しました。 C++にてdll内の"mlfMyadd"関数に引数を与えて結果を取得しようと試みています。 しかし、引数の型がmxArrayになっており、どのようにデータを格納するのか、取り出すのかがわかりません。 データについては単純な以下で試してみたいです。
a1[] = {1.0, 2.0};
a2[] = {3.0, 4.0};
結果として、
a[] = {4.0, 6.0};
を取得できないでしょうか。
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!