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

14 次查看(过去 30 天)
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
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 CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by