MATLAB: Do I get an error when passing a frame-based signal into an Embedded MATLAB function block with Simulink 6.0 (R14)

blockdataemlframedr14simulink

I am using a frame-based signal as an input to an Embedded MATLAB function block with Simulink 6.0 (R14). When I run it, I get the following error:
Embedded MATLAB Interface Error: Cannot propagate frame data from output port 1 of 'EMLTest/Embedded MATLAB Function/u' to input port 1 of 'EMLTest/Embedded MATLAB Function/ SFunction ' because this input port expects non-frame data; consider inserting an Unbuffer

Best Answer

This feature as been added in Simulink 6.6 (R2007a). If you are using a previous version, read the following:
The ability to handle frame-based inputs to an Embedded MATLAB function block is not available in Simulink 6.0 (R14).
To work around this issue, use either the Unbuffer block or the Frame Conversion block with the "Output Type" as "Sample Based" in the Function Block parameters.