フィルターのクリア

MWArray Data Access in Python

2 ビュー (過去 30 日間)
Rajeev Yadav
Rajeev Yadav 2022 年 5 月 17 日
回答済み: Rishav 2023 年 9 月 13 日
I have a .net DLL compiled by dotnet builder. I want to use the DLL in python. The returned output from DLL is a MWStruct that contains 2 fieldnames (Data) and (Name). Data is MWArray type and Name is MWString.
When I try to read the data, I only able to get first element. Cansomeone explain how to get the complete vector.
Say input x = [1.1, 2.2, 3.3]
y = MWNumericArray(x)
I want to show y = [1.1, 2.2, 3.3]
How?
Q: Why this way? It is because we are relying on a thrid-party vendor that gave us the DLL compiled in DOTNET.
Any guidance is highly appreciated. Thanks

回答 (1 件)

Rishav
Rishav 2023 年 9 月 13 日
Hi Rajeev,
If you are using the function MWNumericArray() the following way, it should display the complete vector as [1.1, 2.2, 3.3] and not only the first element.
% Define your input array x
x = [1.1, 2.2, 3.3];
% Create a numeric array using MWNumericArray
y = MWNumericArray(x);
% Display the numeric array
disp(y);
Moreover, you can refer the below mentioned documentation for MWNumericArray():
Thank you,
Rishav Saha

カテゴリ

Help Center および File ExchangeDeploy to C++ Applications Using mwArray API (C++03) についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by