メインコンテンツ

MATLAB のクラス

MATLAB® クラスの固定小数点変換およびコード高速化

アルゴリズムの高速化または固定小数点変換を意図したコードでは、値クラス、ハンドル クラス、System object などの MATLAB クラスを使用できます。MATLAB の値クラスとハンドル クラスの詳細については、ハンドル クラスと値クラスの比較を参照してください。System object の詳細については、System object とはを参照してください。

固定小数点変換または高速化用の MATLAB コードでは、以下を行うことができます。

  • MATLAB コードで MATLAB 値クラスまたはハンドル クラスを使用する。

  • MATLAB 値クラスを MATLAB エントリ ポイントの入力引数として使用する。

アルゴリズムの高速化または固定小数点の変換に使用する MATLAB コードでクラスを使用するときは、使用に関する特定のメモと制限に留意しなければなりません。

クラス

coder.ClassType入力仕様に対して許容される MATLAB クラスのセットを表す

トピック

トラブルシューティング

Resolve Error: Handle Object Referenced by Persistent Variable (MATLAB Coder)

Troubleshoot error when using a persistent handle object.

Resolve Error: Nontunable Property Cannot Be Defined by Subscripted Assignment (MATLAB Coder)

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

Resolve Error: Class Properties Must Be Fully Defined Before Use (MATLAB Coder)

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

Resolve Error: Cannot Reference Handle Object Outside of Loop (MATLAB Coder)

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

クラスにプロパティを含めない (MATLAB Coder)

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

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

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

Resolve Error: coder.varsize Not Supported for Class Properties (MATLAB Coder)

Troubleshoot code generation error when using coder.varsize with properties of a MATLAB class.