- Connect the input of the MATLAB Function block to the output of the signal you want to access, and ensure the output of the MATLAB Function block continues along the original signal path.
- The body of the MATLAB function block should contain the following code, where "data" is the name of the signal being written to the base workspace:function y = fcn(u) coder.extrinsic('assignin') assignin('base','data',u) y = u;
