I have a cycle in Fortran, and I would like to call a Matlab script that at each iteration simply plots the 2 variables I am computing, always in the same figure, in a way that I can see how my solution evolves in time (basically a video)
do i=1,n
Y(1:m) = blabla
X(1:M) = blabla
write X and Y on file
RUN a matlab script which reads file and plots X and Y
enddo
If there is a way to bypass writing on the file and I can pass the variables as an argument even better cause it will be more efficient (I doubt it is possible). Basically, I want the results plotted in real-time so I can catch if the solution is unstable without having to wait until the end of the simulation.
