% Matlab plot script for ppc_fd1() finite difference solver.
PLOT_WITH_MATLAB_FD_XVEC = [
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 
];
PLOT_WITH_MATLAB_FD_TVEC = [
0 0.015625 0.03125 0.046875 0.0625 0.078125 0.09375 0.109375 0.125 0.140625 0.15625 0.171875 0.1875 0.203125 0.21875 0.234375 0.25 0.265625 0.28125 0.296875 0.3125 0.328125 0.34375 0.359375 0.375 0.390625 0.40625 0.421875 0.4375 0.453125 0.46875 0.484375 0.5 
];
PLOT_WITH_MATLAB_FD_ZMAT = [
-1 -1 -1 -1 -1 0 1 1 1 1 1 
-1 -0.999173 -0.994113 -0.958911 -0.71333 0 0.71333 0.958911 0.994113 0.999173 1 
-0.999937 -0.995087 -0.973547 -0.876855 -0.570415 -1.01846e-17 0.570415 0.876855 0.973547 0.995087 0.999937 
-0.998909 -0.985614 -0.940508 -0.801394 -0.485666 -3.05537e-17 0.485666 0.801394 0.940508 0.985614 0.998909 
-0.995322 -0.970938 -0.903221 -0.738603 -0.429112 -4.07382e-17 0.429112 0.738603 0.903221 0.970938 0.995322 
-0.988588 -0.952617 -0.866176 -0.686968 -0.388258 -7.12919e-17 0.388258 0.686968 0.866176 0.952617 0.988588 
-0.979079 -0.932196 -0.831231 -0.644114 -0.357085 -9.16611e-17 0.357085 0.644114 0.831231 0.932196 0.979079 
-0.967491 -0.910845 -0.798966 -0.608042 -0.33234 -1.01846e-16 0.33234 0.608042 0.798966 0.910845 0.967491 
-0.9545 -0.889356 -0.769417 -0.577236 -0.312104 -1.06938e-16 0.312104 0.577236 0.769417 0.889356 0.9545 
-0.940654 -0.868226 -0.742412 -0.550572 -0.295165 -1.27307e-16 0.295165 0.550572 0.742412 0.868226 0.940654 
-0.926362 -0.847753 -0.71771 -0.527217 -0.280717 -1.27307e-16 0.280717 0.527217 0.71771 0.847753 0.926362 
-0.911918 -0.828096 -0.695066 -0.506547 -0.268202 -1.27307e-16 0.268202 0.506547 0.695066 0.828096 0.911918 
-0.89753 -0.809329 -0.67425 -0.488085 -0.257222 -1.42584e-16 0.257222 0.488085 0.67425 0.809329 0.89753 
-0.883336 -0.791472 -0.655058 -0.471466 -0.247484 -1.68045e-16 0.247484 0.471466 0.655058 0.791472 0.883336 
-0.86943 -0.774512 -0.637308 -0.456403 -0.238767 -1.7823e-16 0.238767 0.456403 0.637308 0.774512 0.86943 
-0.855873 -0.758417 -0.620843 -0.442668 -0.230902 -1.83322e-16 0.230902 0.442668 0.620843 0.758417 0.855873 
-0.842701 -0.743147 -0.605525 -0.430078 -0.223759 -1.88414e-16 0.223759 0.430078 0.605525 0.743147 0.842701 
-0.829933 -0.728653 -0.591236 -0.418482 -0.217231 -2.03691e-16 0.217231 0.418482 0.591236 0.728653 0.829933 
-0.817578 -0.71489 -0.577871 -0.407758 -0.211236 -2.13876e-16 0.211236 0.407758 0.577871 0.71489 0.817578 
-0.805634 -0.701809 -0.565339 -0.397803 -0.205705 -2.29153e-16 0.205705 0.397803 0.565339 0.701809 0.805634 
-0.794097 -0.689365 -0.553563 -0.38853 -0.20058 -2.44429e-16 0.20058 0.38853 0.553563 0.689365 0.794097 
-0.782956 -0.677515 -0.54247 -0.379865 -0.195815 -2.59706e-16 0.195815 0.379865 0.54247 0.677515 0.782956 
-0.7722 -0.666218 -0.532002 -0.371747 -0.19137 -2.74983e-16 0.19137 0.371747 0.532002 0.666218 0.7722 
-0.761815 -0.655438 -0.522102 -0.36412 -0.187211 -2.80075e-16 0.187211 0.36412 0.522102 0.655438 0.761815 
-0.751787 -0.64514 -0.512724 -0.356938 -0.183309 -2.80075e-16 0.183309 0.356938 0.512724 0.64514 0.751787 
-0.742101 -0.635291 -0.503824 -0.350161 -0.179638 -2.85168e-16 0.179638 0.350161 0.503824 0.635291 0.742101 
-0.732743 -0.625862 -0.495365 -0.343751 -0.176177 -2.9026e-16 0.176177 0.343751 0.495365 0.625862 0.732743 
-0.723697 -0.616827 -0.487311 -0.337677 -0.172907 -2.95352e-16 0.172907 0.337677 0.487311 0.616827 0.723697 
-0.714951 -0.608159 -0.479633 -0.331912 -0.169812 -2.85168e-16 0.169812 0.331912 0.479633 0.608159 0.714951 
-0.706489 -0.599836 -0.472302 -0.326431 -0.166876 -2.69891e-16 0.166876 0.326431 0.472302 0.599836 0.706489 
-0.6983 -0.591836 -0.465295 -0.321211 -0.164086 -2.69891e-16 0.164086 0.321211 0.465295 0.591836 0.6983 
-0.690371 -0.584141 -0.458587 -0.316233 -0.161432 -2.69891e-16 0.161432 0.316233 0.458587 0.584141 0.690371 
-0.682689 -0.576731 -0.45216 -0.311479 -0.158901 -2.72437e-16 0.158901 0.311479 0.45216 0.576731 0.682689 
];
surf ( PLOT_WITH_MATLAB_FD_XVEC, PLOT_WITH_MATLAB_FD_TVEC, PLOT_WITH_MATLAB_FD_ZMAT )
xlabel('x')
ylabel('t')
zlabel('u')
colormap jet
