MATLAB Answers

0

How do I import .Net frameworks inside a function?

Asked by David Johnston on 19 Sep 2017
Latest activity Answered by Han Du
on 22 Sep 2017
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.

  0 Comments

Sign in to comment.

Products

1 Answer

Answer by Han Du
on 22 Sep 2017

What MATLAB version and .NET framework version are you using? Is that possible to share the reproduction code?

  0 Comments

Sign in to comment.