フィルターのクリア

Is there a way to unload a module (a shared library) from a MATLAB session?

17 ビュー (過去 30 日間)
Vladimir Bondarenko
Vladimir Bondarenko 2018 年 10 月 8 日
回答済み: Tristan Yang 2018 年 10 月 11 日
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?

回答 (1 件)

Tristan Yang
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 "

カテゴリ

Help Center および File ExchangeCall C from MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by