MATLAB Answers

Chihwei Ko

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?




1 Answer

Answer by PG
on 31 Oct 2012


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

Thanks Kaustubha.

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

Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!