MATLAB: Ui Matlab Graphic Update

graphicguiguideimage acquisitionmatlab guiuiupdate

Hi everyone, I'd like to ask you a question about GUi. I want to plot the output of my model in simulink while it is running. I tried to use a plot with data saved and taken from workspace; but due to the fact that I need to change some value of my model during simulation, I'd like to view my output online, like with a scope in simulink. Do you know if it is possible in some way? Thanks everybody.

Best Answer

If you have your logged Simulink data in workspace, you can only "plot" it (from MATLAB) after the simulation has completed. There is no way that you can plot the data while the Simulation is running and you are tuning the parameters. That is why Simulink has 'Scopes' - to view this data in real time.
You can consider alternate data logging techniques mentioned in the documentation here:
https://www.mathworks.com/help/simulink/export-runtime-information.html