C++においてmxArrayにデータ格納する方法
Ältere Kommentare anzeigen
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};
を取得できないでしょうか。
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB Compiler finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!