% 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.997305 -0.987709 -0.946647 -0.769002 0 0.769002 0.946647 0.987709 0.997305 1 
-0.999937 -0.990744 -0.964758 -0.880018 -0.624706 0 0.624706 0.880018 0.964758 0.990744 0.999937 
-0.998909 -0.980401 -0.935412 -0.815299 -0.529506 -1.64135e-17 0.529506 0.815299 0.935412 0.980401 0.998909 
-0.995322 -0.966754 -0.903249 -0.757408 -0.463365 -3.28271e-17 0.463365 0.757408 0.903249 0.966754 0.995322 
-0.988588 -0.950457 -0.870607 -0.707191 -0.41522 -4.92406e-17 0.41522 0.707191 0.870607 0.950457 0.988588 
-0.979079 -0.932253 -0.838823 -0.664026 -0.378726 -3.28271e-17 0.378726 0.664026 0.838823 0.932253 0.979079 
-0.967491 -0.912859 -0.80858 -0.626881 -0.350092 -3.28271e-17 0.350092 0.626881 0.80858 0.912859 0.967491 
-0.9545 -0.892893 -0.780172 -0.594727 -0.326965 -4.92406e-17 0.326965 0.594727 0.780172 0.892893 0.9545 
-0.940654 -0.872836 -0.753672 -0.566667 -0.307829 -7.3861e-17 0.307829 0.566667 0.753672 0.872836 0.940654 
-0.926362 -0.853039 -0.729036 -0.541968 -0.291669 -8.20677e-17 0.291669 0.541968 0.729036 0.853039 0.926362 
-0.911918 -0.833742 -0.706166 -0.520042 -0.277788 -9.02745e-17 0.277788 0.520042 0.706166 0.833742 0.911918 
-0.89753 -0.815098 -0.684936 -0.500425 -0.265693 -1.06688e-16 0.265693 0.500425 0.684936 0.815098 0.89753 
-0.883336 -0.797193 -0.665214 -0.482747 -0.255027 -1.14895e-16 0.255027 0.482747 0.665214 0.797193 0.883336 
-0.86943 -0.780069 -0.646871 -0.466717 -0.245523 -1.14895e-16 0.245523 0.466717 0.646871 0.780069 0.86943 
-0.855873 -0.763736 -0.629786 -0.452097 -0.236982 -1.23102e-16 0.236982 0.452097 0.629786 0.763736 0.855873 
-0.842701 -0.748182 -0.613845 -0.438698 -0.229248 -1.39515e-16 0.229248 0.438698 0.613845 0.748182 0.842701 
-0.829933 -0.733382 -0.598944 -0.426362 -0.222201 -1.39515e-16 0.222201 0.426362 0.598944 0.733382 0.829933 
-0.817578 -0.719304 -0.584992 -0.414961 -0.215745 -1.31308e-16 0.215745 0.414961 0.584992 0.719304 0.817578 
-0.805634 -0.705912 -0.571903 -0.404387 -0.209801 -1.31308e-16 0.209801 0.404387 0.571903 0.705912 0.805634 
-0.794097 -0.693165 -0.559602 -0.394548 -0.204307 -1.31308e-16 0.204307 0.394548 0.559602 0.693165 0.794097 
-0.782956 -0.681026 -0.548021 -0.385367 -0.199209 -1.31308e-16 0.199209 0.385367 0.548021 0.681026 0.782956 
-0.7722 -0.669457 -0.537098 -0.376776 -0.194463 -1.39515e-16 0.194463 0.376776 0.537098 0.669457 0.7722 
-0.761815 -0.658422 -0.526779 -0.368719 -0.190032 -1.39515e-16 0.190032 0.368719 0.526779 0.658422 0.761815 
-0.751787 -0.647886 -0.517014 -0.361144 -0.185883 -1.39515e-16 0.185883 0.361144 0.517014 0.647886 0.751787 
-0.742101 -0.637818 -0.507759 -0.354008 -0.181988 -1.31308e-16 0.181988 0.354008 0.507759 0.637818 0.742101 
-0.732743 -0.628186 -0.498974 -0.347272 -0.178325 -1.39515e-16 0.178325 0.347272 0.498974 0.628186 0.732743 
-0.723697 -0.618964 -0.490623 -0.340901 -0.174871 -1.47722e-16 0.174871 0.340901 0.490623 0.618964 0.723697 
-0.714951 -0.610125 -0.482672 -0.334866 -0.171609 -1.55929e-16 0.171609 0.334866 0.482672 0.610125 0.714951 
-0.706489 -0.601645 -0.475093 -0.329138 -0.168521 -1.55929e-16 0.168521 0.329138 0.475093 0.601645 0.706489 
-0.6983 -0.593502 -0.467859 -0.323695 -0.165594 -1.55929e-16 0.165594 0.323695 0.467859 0.593502 0.6983 
-0.690371 -0.585676 -0.460944 -0.318512 -0.162814 -1.55929e-16 0.162814 0.318512 0.460944 0.585676 0.690371 
-0.682689 -0.578146 -0.454328 -0.313572 -0.16017 -1.55929e-16 0.16017 0.313572 0.454328 0.578146 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
