Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Can i update the matlab workspace during simulation?

Asked by Chihwei Ko on 31 Oct 2012


With the 'to workspace' block i want to write values to the matlab workspace. Then i load in a value from workspace. But 'to workspace' block only can update the matlab workspace at the end of simulation. Is there any way that i can update the matlab workspace during simulation?


Chihwei Ko



1 Answer

Answer by Sachin on 31 Oct 2012


Kaustubha Govind on 31 Oct 2012

Another option is using event listeners. See Access Block Data During Simulation.

Chihwei Ko on 2 Nov 2012

Thanks Kaustubha.

Arun Badigannavar on 9 Jan 2013

Have u got it Mr SAchin,am also looking for same,,but am unable to develop it


Contact us