libisloaded
共有 C ライブラリの読み込み判定
説明
例
shrlibsample ライブラリの読み込みとアンロード
shrlib
サンプル フォルダーをパスに追加します。
addpath(fullfile(matlabroot,'extern','examples','shrlib'))
ライブラリがまだ読み込まれていなければ、読み込みます。
if ~libisloaded('shrlibsample') loadlibrary('shrlibsample') end
終了したら、ライブラリをアンロードしてメモリを解放します。
unloadlibrary shrlibsample
入力引数
libname
— 共有ライブラリの名前
文字ベクトル
共有ライブラリの名前。文字ベクトルとして指定します。libname
にパスやファイル拡張子は含めないでください。
alias
オプションを使用して loadlibrary
を呼び出す場合は、libname
引数に対して別名を使用しなければなりません。
データ型: char
バージョン履歴
R2006a より前に導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)