how to specify this field as a cell containing a structure

5 ビュー (過去 30 日間)
Li Cookie
Li Cookie 2021 年 9 月 27 日
回答済み: Harsh 2025 年 1 月 23 日
i am using the matlab coder, but i dont know how to solve this error.
the project is using the multiobjecttracker.

回答 (1 件)

Harsh
Harsh 2025 年 1 月 23 日
Hi Li Cookie,
When using the objectDetection object, the ObjectAttributes property must be specified as a scalar structure or a cell array containing a scalar structure for code generation. This requirement ensures compatibility with MATLAB Coder.
To resolve your error please ensure to pass ObjectAttributes as a struct while creating the “objectDetection” object. Refer to the following documentation example to understand how to do so - https://www.mathworks.com/help/driving/ref/objectdetection.html#:~:text=struct(%27myProperty%27%2C2)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by