I have an Embedded MATLAB Block implementation of how to output an empty signal in simulink in the attached model and it works fine in Simulink. I would like to perform the equivalent task without using an Embedded Matlab Block, but, only core Simulink blocks.
I would like to send to an output a zero sized signal for a specified input dimension at a non zero time, when the time value is lesser than a threshold value.
The way that I use the zero size signal assignment in Embedded MATLAB function block is as below:
function y = nullout(time,u,thresh)%#eml
if time > thresh y=u;elsey = [];endend
Best Answer