C++においてmxArrayにデータ格納する方法
Mostrar comentarios más antiguos
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};
を取得できないでしょうか。
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!