MATLAB: MATLAB Funcion is not connected in Simulink

functions simulink

Hi,
I am just following the video with " Getting started with Simulink 3D animation (Part 1)" but I get an error with the Funciont, I get the message: "output port 2 of MATLAB Faunction is not connected"; any idea on how to solve this?
Thank you very much in advance.
Kind regards,
Blanca

Best Answer

Hi Blanca,
If you notice, output a from fcn block is not connected to anything. This is the reason for your error. You can use scope block or Sink Block to view the output.
Regards,
Anmol Dhiman