MATLAB Answers

Chihwei Ko

Can i update the matlab workspace during simulation?

Asked by Chihwei Ko
on 31 Oct 2012

Hello,

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?

  0 Comments

Tags

Products

1 Answer

Answer by PG
on 31 Oct 2012

  4 Comments

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


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today