How to set output of MATLAB function block as fixed size?

3 ビュー (過去 30 日間)
Jeffrey H
Jeffrey H 2018 年 8 月 1 日
I have a MATLAB function block in Simulink. The dimensions of the output are defined by block inputs, but remain constant during the simulation. How can I get Simulink to define it as a fixed-size output?
  11 件のコメント
stozaki
stozaki 2020 年 2 月 14 日
編集済み: stozaki 2020 年 2 月 14 日
This problem may be a limitation of Video Viewer. Then I don't think you can get rid of this error.
The Color Space Conversion block can generate C code.
Adil Murtaza Zuberi
Adil Murtaza Zuberi 2020 年 2 月 17 日
Thank you but as described, there will be later on custom code inside the funtion block, therefore it is necessary to use matlab function block for Code Generation.

サインインしてコメントする。

回答 (1 件)

stozaki
stozaki 2020 年 2 月 13 日
* I attached model and Signal Object file.
There are two ways.
  1. Set the dimensions in the properties of the output signal.
  2. Use Simulink Signal Object
Regards,
stozaki

カテゴリ

Help Center および File ExchangeSignal Attributes and Indexing についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by