Is there a way to unload a module (a shared library) from a MATLAB session?
조회 수: 17 (최근 30일)
이전 댓글 표시
Say, my mex function depends on a shared library. That library is loaded into MATLAB's work space together with the mex code. The mex-code itself can be unloaded from a running MATLAB session by:
clear <mex_file_name>
However, the dependent library remains.
Is there a way to unload the shared library without restarting MATLAB?
댓글 수: 0
답변 (1개)
Tristan Yang
2018년 10월 11일
If you are loading the library into your C program that is later MEXed, you will need to call FreeLibrary in C to unload it.
If you are loading the library into MATLAB workspace with the " loadlibrary " function, then you may unload it using the " unloadlibrary "
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Call C from MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!