NET.addAssembly is a script, not a function, in MATLAB 2019a

조회 수: 4 (최근 30일)
Ian St. Louis
Ian St. Louis 2019년 6월 13일
답변: Avijit Prakash 2022년 5월 22일
When I try to execute this function like:
NET.addAssembly(which('FUTEK_USB_DLL.dll'))
I get the error:
Error using NET.addAssembly
Attempt to execute SCRIPT addAssembly as a function:
/Applications/MATLAB_R2019a.app/toolbox/matlab/winfun/NET/+NET/addAssembly.m
When i dug into the function NET.addAssembly (attached), there is literally no content to the function. I just installed MATLAB like 2 days ago on this computer so I didn't mess this function up. What am i missing?
NET.addAssembly is literally just comments.

채택된 답변

Steven Lord
Steven Lord 2019년 6월 13일
From the error message (specifically the "MATLAB_R2019a.app" part of the path to the NET.addAssembly function) you appear to be using Mac OS X. The interface to .NET is only supported on Microsoft Windows, as stated at the top of the "Getting Started with Microsoft .NET" page linked from here.

추가 답변 (1개)

Avijit Prakash
Avijit Prakash 2022년 5월 22일
Unfortunately I wasted so much time to find out that MATLAB says addAssembly is unsupported. Link Here

카테고리

Help CenterFile Exchange에서 Get Started with Microsoft .NET에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by