Passing a 2D array from Matlab to a .NET function

1 回表示 (過去 30 日間)
Will L
Will L 2017 年 9 月 18 日
回答済み: Han Du 2017 年 9 月 22 日
I am working on a Matlab program in which I need to pass a 2D array (uint8, 128X128) to a .NET method.
I used Matlab function, zeros(128,128), to create this array and passed it to the .NET method. The method was supposed to write image data (bitmap) into this array. However, the array remained unchanged (i.e., all zeros) after calling the .NET method several times.
I greatly appreciate if you can provide me some suggestions regarding this issue.

回答 (1 件)

Han Du
Han Du 2017 年 9 月 22 日
How do you pass data to .NET function? Are you using MATLAB Engine API?

カテゴリ

Help Center および File ExchangeGet Started with Microsoft .NET についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by