メインコンテンツ

MATLAB クラス

MATLAB® クラスの HLS コード生成

値クラス、ハンドル クラス、System object™ などの MATLAB クラスのコードを生成できます。クラスは複数のメソッドとプロパティをもつことができ、複数のクラスからの継承も可能です。MATLAB クラスは、生成された HLS コードで C++ クラスに変換されます。

トピック

コード生成の基礎

使用上の注意および制限

トラブルシューティング

クラスにプロパティを含めない

ハンドル クラスのプロパティの代入に関する問題をトラブルシューティングします。

Resolve Error: Handle Object Referenced by Persistent Variable

Troubleshoot error when using a persistent handle object.

Resolve Error: Nontunable Property Cannot Be Defined by Subscripted Assignment

Troubleshoot code generation failure when a System object uses a structure.

Resolve Error: Class Properties Must Be Fully Defined Before Use

Troubleshoot code generation error when class properties are not defined before use.

Resolve Error: Cannot Reference Handle Object Outside of Loop

Troubleshoot error when creating or allocating a handle object inside a for-loop.

一部のプロパティでサポートされない参照渡し

coder.refcoder.rref、または coder.wref で使用できないプロパティがあります。

言語制約の回避: コード生成はオブジェクト配列をサポートしていません

MATLAB コードに含まれるオブジェクトの配列に対するコード生成エラーのトラブルシューティング。