I am proper stuck on plotting a graph.
It’s a graph of flow simulation, I need to be able to see the graphs for about 25 time segments between t=0 and t=1.
this is the code I’ve written that does it for t=0.1. I obviously can’t repeat the code 25 times. Is there any way of programming it to plot all in one go. i.e using loop?
ALSO, I need to redefine both the axis to go from 0 to 1.
Many thanks
use
drawnowafter your plot command. this will force matlab to draw the plot immediately, enabling you to see the progress of the simulation.EDIT:
I didn’t see the last bit. To set your x & y axis to go from 0 to 1, do
xlim([0 1])andylim([0 1])