How do I import .Net frameworks inside a function?

1 回表示 (過去 30 日間)
David Johnston
David Johnston 2017 年 9 月 19 日
回答済み: Han Du 2017 年 9 月 22 日
I am trying to use .Net assemblies inside a matlab function. When I comment out the "function" line and run the script as top-level .m file it runs fine. When I run it as a function I get the following error:
Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Please assist.

回答 (1 件)

Han Du
Han Du 2017 年 9 月 22 日
What MATLAB version and .NET framework version are you using? Is that possible to share the reproduction code?

カテゴリ

Help Center および File ExchangeGetting 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