필터 지우기
필터 지우기

Can i use Matlab OOP and still use Compiler SDK

조회 수: 3 (최근 30일)
Eugene Davis
Eugene Davis 2018년 3월 5일
댓글: Walter Roberson 2018년 3월 5일
I want to redo all my algorithm code to Matlab OOP. Currently my code has a single entry point from the commercial application and it is compiled into a .NET assembly. If I maintain the same Matlab interface to the calling program can I change all the underlying code to Matlab OOP without messing anything up?

답변 (1개)

Walter Roberson
Walter Roberson 2018년 3월 5일
"MATLAB Compiler supports the full MATLAB language including objects, most MATLAB toolboxes, and user-developed user interfaces."
"MATLAB Compiler SDK™ extends the functionality of MATLAB Compiler™ to let you build C/C++ shared libraries, Microsoft® .NET assemblies, Java® classes, and Python® packages from MATLAB® programs. These components can be integrated with custom applications and then deployed to desktop, web, and enterprise systems."
So, yes, you should be fine with Compiler SDK as long as you do not use one of the functions that cannot be compiled anyhow.
  댓글 수: 2
Eugene Davis
Eugene Davis 2018년 3월 5일
Thanks Walter. A followup if you please. Should I wrap the Matlab OOP program in a standard Matlab function. Then I assume what I've done moving from Matlab procedural programs that have a bunch of .m function to a bunch of .m class def files will be invisible to the calling program. I assume the Compiler SDK will know how to make sure all the class def files are included as it knew what .m function files to include when building the .NET assembly.
Walter Roberson
Walter Roberson 2018년 3월 5일
My understanding is that the constructor need to be called from a regular function for the purpose of compilation.
It should pick up all the needed files from the @ directories on the MATLAB path.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by