You can use the quantile command
to determine the upper and lower quartiles at each time points and then use those points to plot the upper and lower curves.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!