you need to understand the optical signal format that OptiSystem can generate and the structure of that signal launched into the Matlab workspace.Using the MATLAB Library, we can add a Matlab component to the layout. By clicking on the component properties, on the Main tab, we can choose the Sampled Signal in the time or frequency
domain. The number of input and output ports and also the format of these signals (Optical/Electrical) can be defined in the Inputs and Outputs tab. The User Parameter tab is used to define the input parameters of the component.