MATLAB: How to access simulating values during simulation

animationsimulink

How to acess simulating values during simulation to send them to a matalb function block

Best Answer

Hi Diwakar,
You may use port value label by right clicking the connection to the MATLAB function block. By this option you can only view the values during simulation but to log them you need to enable data logging in the model configuration parameters.
You may use this link for logging:
Hope this Helps!