MATLAB Answers

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

31 views (last 30 days)
Jeffrey H
Jeffrey H on 1 Aug 2018
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?
Adil Murtaza Zuberi
Adil Murtaza Zuberi on 17 Feb 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.

Sign in to comment.

Answers (1)

stozaki on 13 Feb 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




Community Treasure Hunt

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

Start Hunting!