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

조회 수: 11 (최근 30일)
Jeffrey H
Jeffrey H 2018년 8월 1일
댓글: Adil Murtaza Zuberi 2020년 2월 17일
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 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