このページは前リリースの情報です。該当の英語のページはこのリリースで削除されています。
.NET アセンブリの統合
MATLAB Compiler SDK™ では、コンパイルされた MATLAB 関数を .NET アプリケーションと統合するにあたり、MATLAB Runtime の初期化、コンパイルされた MATLAB 関数の MATLAB Runtime への読み込み、および .NET コードと MATLAB 間で渡されるデータの管理を行う API を組み合わせて使用します。
.NET と MATLAB の間でデータのマーシャリングと形式設定を行う 2 つのデータ変換 API は、MATLAB データ型にマッピングされる派生型を使用する MWArray
と、ネイティブな .NET 型を使用し .NET リモート処理をサポートするネイティブ .NET API です。さらに、タイプ セーフなインターフェイスによって、ネイティブな .NET データ型を直接操作するメソッドの代替セットが提供されています。
MATLAB 関数を .NET で開発されたサーバーと統合するには、Microsoft® の .NET リモート API または Windows Communications Foundation フレームワークのいずれかを使用します。これらの API は、Web を介してアクティブな Figure を配布し .NET リモート機能にアクセスするための機能を使うことで、分散アプリケーションの開発を容易にします。
関数
compiler.build.dotNETAssembly | Create .NET assembly for deployment outside MATLAB |
compiler.build.DotNETAssemblyOptions | Options for building .NET assemblies |
compiler.package.installer | MATLAB Compiler によって生成されたファイル用のインストーラーの作成 |
compiler.package.InstallerOptions | MATLAB Compiler パッケージ インストーラーの作成オプション |
enableTSUtilsfromNetworkDrive | Set trust setting to load .NET assemblies from network drive |
ntswrap | Generate type-safe API |
MWArray クラス ライブラリのリファレンス
トピック
作成および .NET Framework との統合
- .NET アセンブリの生成と .NET アプリケーションのビルド
MATLAB で .NET アセンブリを作成し、サンプル C# コードを使って実装する。 - Integrate .NET Assembly Into F# Application
Use F# to integrate your assembly with less code.
作成および .NET Core との統合
- Build .NET Core Application That Runs on Linux and macOS
Create a .NET core application that can run on Linux® and macOS systems.
サンプル アプリケーション
- Integrate Simple MATLAB Function Into .NET Application
Build a .NET application using C# or Visual Basic®. - Integrate Function with Variable Number of Arguments
Build a .NET application using a MATLAB function that takes a variable number of arguments. - Assign Multiple MATLAB Functions in Component Class
Create a .NET assembly containing multiple functions to implement a matrix math program. - Integrate MATLAB Optimization Routines with Objective Functions
Build a .NET assembly that applies optimization routines to objective functions using theMWObjectArray
class. - Use Multiple Classes in .NET Assembly
Create a .NET assembly containing multiple classes to implement a signal analyzer application. - Block Console Display When Creating Figures
Handle interaction in a console-based program that creates MATLAB figures.
データ変換
- Data Marshaling with MWArray API
Learn how theMWArray
classes convert data between .NET and MATLAB. - Convert Data Between .NET and MATLAB
See examples on manually converting between native .NET data types and MATLAB types. - Rules for Data Conversion Between .NET and MATLAB
Refer to the rules for converting .NET types to MATLAB types. - Interfaces Generated by the MATLAB Compiler SDK
Learn the different class methods generated for each MATLAB function. - Limitations on Multiple Assemblies in Single Application
See the data types that cannot be shared across .NET assemblies.
タイプ セーフな API
- Type-Safe Interfaces
Consider using type-safe interfaces instead ofMWArray
to work directly with native data types. - Implement Type-Safe Interface and Integrate into .NET Application
Create a multiplication program that uses native .NET data types through a type-safe interface. - Create Managed Extensibility Framework Plug-Ins
Extend .NET applications with Managed Extensibility Framework (MEF) plug-ins using a type-safe API.
.NET リモート処理
- Create Remotable .NET Assembly
Build a remotable .NET component using the Library Compiler app or programmatically. - Compare MWArray and Native .NET API for Remotable Assemblies
Decide between the
MWArray
and native .NET APIs for data marshaling in an assembly. - .NET Remoting and Windows Communications Foundation
Learn the advantages of implementing remotable .NET components. - Create Windows Communications Foundation Component
Deploy a Windows® Communications Foundation (WCF) component using a type-safe API.