MATLAB: Automatic data exporting/saving into “to workspace”

automatic exportingautomatic simulation

I am working in simulation of model and I want to automate data exporting/saving of data from that simulation for every certain time. Can someone help me how to do this?

Best Answer

Question is not very clear. What I undertand is that you want to save some data to workspace. But instead of continuously saving the data you want to save it only at certain time steps. In that case try using the 'To Workspace' block inside an Enabled Subsystem with the control signal design dependent on your timing constraints. Get back with your model and further details in case you are looking for something more.