C++においてmxArrayにデータ格納する方法
Afficher commentaires plus anciens
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};
を取得できないでしょうか。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!