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

13 visualizaciones (últimos 30 días)
Jeffrey H
Jeffrey H el 1 de Ag. de 2018
Comentada: Adil Murtaza Zuberi el 17 de Feb. de 2020
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 comentarios
stozaki
stozaki el 14 de Feb. de 2020
Editada: stozaki el 14 de Feb. de 2020
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 el 17 de Feb. de 2020
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.

Iniciar sesión para comentar.

Respuestas (1)

stozaki
stozaki el 13 de Feb. de 2020
* 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

Categorías

Más información sobre Computer Vision with Simulink en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by