最新のリリースでは、このページがまだ翻訳されていません。 このページの最新版は英語でご覧になれます。

MATLAB 関数のパッケージ化

他の言語でコーディングされたアプリケーション内で使用するために MATLAB® 関数をパッケージ化する

MATLAB 関数を外部アプリケーションに統合するには、事前にターゲット言語用にそれらをパッケージ化しなければなりません。MATLAB Compiler SDK™ には、このための 2 つのアプリとコマンド ライン コンパイラが組み込まれています。アプリは、パッケージ化する関数の指定とインストーラーの作成を順に進めます。ターゲット言語の開発者は、コンパイルされたコードと、コードの実行に必要な MATLAB Runtime を開発システムにインストールします。コマンド ラインで、開発者がアプリケーションの開発で使用しているターゲット言語のバイナリ パッケージに MATLAB 関数をパッケージ化できます。

アプリ

ライブラリ コンパイラPackage MATLAB programs for deployment as shared libraries and components
Production Server コンパイラPackage MATLAB programs for deployment to MATLAB Production Server

関数

libraryCompilerBuild and package functions for use in external applications
productionServerCompilerTest, build and package functions for use with MATLAB Production Server
mccCompile MATLAB functions for deployment
mbuildCompile and link source files against MATLAB generated shared libraries
deploytoolCompile and package functions for external deployment
componentinfoQuery system registry about COM component created with MATLAB Compiler SDK
isdeployedDetermine whether code is running in deployed or MATLAB mode
ismccTest if code is running during compilation process (using mcc)
ctfrootLocation of files related to deployed application
figToImStreamStream figure as byte array encoded in specified format
getmcruserdataRetrieve MATLAB array value associated with a given key
setmcruserdataAssociate MATLAB data value with a key
%#functionPragma to help MATLAB Compiler locate functions called through feval, eval, Handle Graphics callback, or objects loaded from MAT-files

例および操作のヒント

C/C++

Install an ANSI C or C++ Compiler

Installing a supported C/C++ compiler

Create a C Shared Library with MATLAB Code

Learn how to create a C shared library.

C++ mwArray API 共有ライブラリの生成と C++ アプリケーションのビルド

ライブラリ コンパイラを使用して MATLAB コードから C++ mwArray API 共有ライブラリを作成し、サンプル C++ ドライバー コードを使用して実装します。

C++ MATLAB データ API 共有ライブラリの生成と C++ アプリケーションのビルド

ライブラリ コンパイラを使用して MATLAB コードから C++ MATLAB データ API 共有ライブラリを作成し、サンプル C++ ドライバー コードを使用して実装します。

Create C/C++ Shared Libraries from Command Line

Use the command-line compiler to create C/C++ shared libraries.

Distribute C/C++ Shared Libraries to Application Developers

Distribute the following to the application developer integrating the shared library:

.NET

Generate a .NET Assembly and Build a .NET Application

Create a .NET assembly from MATLAB code using the Library Compiler and implement it with sample .NET driver code.

Package .NET Assemblies from Command Line

Using the mcc command line to build your assembly

Distribute .NET Assemblies to Application Developers

Distribute the following to the application developer integrating the .NET assembly:

Java

Configure Your Java Environment

Configuring the Java® environment for compilation of MATLAB code and development of Java applications

Generate a Java Package and Build a Java Application

Create a Java package from MATLAB code using the Library Compiler and implement it with sample Java driver code.

Package Java Applications from Command Line

Using the command-line compiler to create Java applications.

Map Functions to Java Class Methods

Mapping MATLAB functions to Java classes

Distribute Java Applications to Application Developers

Distribute the following to the application developer integrating the application:

Python

Generate a Python Package and Build a Python Application

Create a Python® package from MATLAB code using the Library Compiler and implement it with sample Python driver code.

Package Python Applications from Command Line

MATLAB Compiler SDK cannot package MATLAB code that uses the MATLAB Python interface.

Distribute Python Applications to Application Developers

Distribute the following to the application developer integrating the application:

MATLAB Production Server

MATLAB Production Server の配布可能なアーカイブの作成

MATLAB 関数を使用して MATLAB Production Server™ の配布可能なアーカイブを作成する方法を学習する。

Package Deployable Archives from Command Line

Package MATLAB applications into deployable archives from the command line using the mcc command.

Build Excel Add-In and Deployable Archive

The Excel integration with MATLAB Production Server builds two artifacts. One is for the server and one is for the client.

COM

Create a Generic COM Component with MATLAB Code

Learn how to create a generic COM component.

Package COM Components from Command Line

Using the mcc command line to build COM components

Distribute COM Components to Application Developers

Distribute the following to the application developer integrating the component:The Library Compiler app generates an installer that packages all of the binary artifacts required for distributing a COM component. The installer is located in the for_redistribution folder of the compiler project.

カスタマイズ

Customize an Application

How to customize the look and feel of the installer generated by the compiler app.

Manage Support Packages

Including support packages when packaging MATLAB applications.

Simplify Compilation Using Macros

Information on macros and how they can simplify your work

Invoke MATLAB Build Options

Using path name, bundles, and wrapper files to build your MATLAB code

概念

MATLAB 関数のパッケージ化後に生成されるファイル

MATLAB 関数のパッケージ化後に生成されるファイルの説明。

How Does MATLAB Deploy Functions?

To deploy MATLAB functions, the compiler performs these tasks:

Write Deployable MATLAB Code

Writing MATLAB code that can be packaged and deployed.

State-Dependent Functions

Dealing with MATLAB functions that carry state.

MATLAB Runtime Component Cache and Deployable Archive Embedding

How to override the default deployable archive embedding behavior and how to use MATLAB Runtime Component Cache

Using the MATLAB Runtime User Data Interface

Information on how to access MATLAB Runtime data

Display the MATLAB Runtime Initialization Messages

Procedure to create console messages for end users

Functions Not Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK

Functions not able to be compiled with MATLAB Compiler™ or MATLAB Compiler SDK

Limitations

Limitations and restrictions regarding what can be compiled