I have a matlab script that is consists of a for loop. In each iteration of the forloop, I have an an input waveform getting read and an output waveform being generated. I want to visualize the input and the output waveform as the code is getting executed. What I am able to see is the waveform that goes in and one getting generated in the last iteration of the for loop. Is there a way to extract output from matlab script as the code is still executing?