afterframe.m.html CLAWPACK  
 Source file:   afterframe.m
 Directory:   /Users/rjl/clawpack_src/clawpack_master/apps/fvmbook/chap6/wavepacket
 Converted:   Sat Mar 23 2024 at 11:05:48   using clawcode2html
 This documentation file will not reflect any later changes in the source file.

 
% shift qtrue to proper position to plot, taking into account periodic BCs:
ntrue = length(qtrue);
qt2 = [qtrue;qtrue];
i1 = ntrue - floor((t-floor(t))*ntrue);

hold on
plot(xtrue,qt2(i1+1:i1+ntrue))
axis([0 1 -1 1.5])
hold off