% 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 -1 -1 -1 -0.609375 0 0.609375 1 1 1 1 
-0.999937 -1 -1 -0.847412 -0.523926 0 0.523926 0.847412 1 1 0.999937 
-0.998909 -0.999975 -0.940395 -0.780655 -0.445629 0 0.445629 0.780655 0.940395 0.999975 0.998909 
-0.995322 -0.976285 -0.90127 -0.712184 -0.402425 0 0.402425 0.712184 0.90127 0.976285 0.995322 
-0.988588 -0.954419 -0.856711 -0.665046 -0.366227 0 0.366227 0.665046 0.856711 0.954419 0.988588 
-0.979079 -0.929599 -0.820009 -0.623189 -0.339896 0 0.339896 0.623189 0.820009 0.929599 0.979079 
-0.967491 -0.906118 -0.785935 -0.58941 -0.317785 0 0.317785 0.58941 0.785935 0.906118 0.967491 
-0.9545 -0.883145 -0.756114 -0.560074 -0.299754 0 0.299754 0.560074 0.756114 0.883145 0.9545 
-0.940654 -0.861397 -0.729158 -0.534965 -0.28435 0 0.28435 0.534965 0.729158 0.861397 0.940654 
-0.926362 -0.840701 -0.704957 -0.512925 -0.271172 0 0.271172 0.512925 0.704957 0.840701 0.926362 
-0.911918 -0.821137 -0.682969 -0.493503 -0.25968 0 0.25968 0.493503 0.682969 0.821137 0.911918 
-0.89753 -0.802627 -0.662931 -0.476176 -0.24958 0 0.24958 0.476176 0.662931 0.802627 0.89753 
-0.883336 -0.785129 -0.644549 -0.460613 -0.240602 -1.0842e-17 0.240602 0.460613 0.644549 0.785129 0.883336 
-0.86943 -0.768577 -0.627613 -0.446521 -0.232559 0 0.232559 0.446521 0.627613 0.768577 0.86943 
-0.855873 -0.752909 -0.611938 -0.433681 -0.225294 -1.0842e-17 0.225294 0.433681 0.611938 0.752909 0.855873 
-0.842701 -0.738062 -0.597373 -0.421912 -0.21869 0 0.21869 0.421912 0.597373 0.738062 0.842701 
-0.829933 -0.72398 -0.58379 -0.411068 -0.212648 0 0.212648 0.411068 0.58379 0.72398 0.829933 
-0.817578 -0.710606 -0.571082 -0.40103 -0.20709 -1.0842e-17 0.20709 0.40103 0.571082 0.710606 0.817578 
-0.805634 -0.69789 -0.559157 -0.391699 -0.201953 0 0.201953 0.391699 0.559157 0.69789 0.805634 
-0.794097 -0.685785 -0.547936 -0.382993 -0.197185 -1.0842e-17 0.197185 0.382993 0.547936 0.685785 0.794097 
-0.782956 -0.674247 -0.537352 -0.374842 -0.192741 0 0.192741 0.374842 0.537352 0.674247 0.782956 
-0.7722 -0.663237 -0.527346 -0.367189 -0.188585 -1.0842e-17 0.188585 0.367189 0.527346 0.663237 0.7722 
-0.761815 -0.652718 -0.517867 -0.359983 -0.184686 0 0.184686 0.359983 0.517867 0.652718 0.761815 
-0.751787 -0.642658 -0.50887 -0.353181 -0.181019 -1.0842e-17 0.181019 0.353181 0.50887 0.642658 0.751787 
-0.742101 -0.633026 -0.500315 -0.346746 -0.177559 -1.0842e-17 0.177559 0.346746 0.500315 0.633026 0.742101 
-0.732743 -0.623793 -0.492167 -0.340645 -0.174289 -2.1684e-17 0.174289 0.340645 0.492167 0.623793 0.732743 
-0.723697 -0.614935 -0.484395 -0.334851 -0.17119 -2.1684e-17 0.17119 0.334851 0.484395 0.614935 0.723697 
-0.714951 -0.606428 -0.476972 -0.329337 -0.168249 -2.1684e-17 0.168249 0.329337 0.476972 0.606428 0.714951 
-0.706489 -0.598251 -0.469871 -0.324082 -0.165452 -2.1684e-17 0.165452 0.324082 0.469871 0.598251 0.706489 
-0.6983 -0.590383 -0.46307 -0.319066 -0.162787 -1.0842e-17 0.162787 0.319066 0.46307 0.590383 0.6983 
-0.690371 -0.582807 -0.45655 -0.314271 -0.160245 -2.1684e-17 0.160245 0.314271 0.45655 0.582807 0.690371 
-0.682689 -0.575505 -0.450291 -0.309682 -0.157816 -1.0842e-17 0.157816 0.309682 0.450291 0.575505 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
