% m-file for making graphs to be used to presend % properties of nonlinear waves (a. mesh plots) % 1. mesh plot of velocity at x mesh(theta(1:2:nc),y(1:2:nr),vx(1:2:nr,1:2:nc)) title('the velocity in x-direction') ylabel('y') xlabel('theta - phase') zlabel('velocity in x-direction') figure % 2.mesh plot of the velocity y-direction mesh(theta(1:2:nc),y(1:2:nr),vy(1:2:nr,1:2:nc)) title('the velocity in y-direction') ylabel('y') xlabel('theta - phase') zlabel('velocity in y-direction') figure % 3. mesh plot of acceleration at x mesh(theta(1:3:nc),y(1:3:nr),ax(1:3:nr,1:3:nc)) title('the acceleration in x-direction') ylabel('y') xlabel('theta - phase') zlabel('acceleration in x-direction') figure % 4. mesh plot of acceleration at y mesh(theta(1:2:nc),y(1:2:nr),ay(1:2:nr,1:2:nc)) title('the acceleration in y-direction') ylabel('y') xlabel('theta - phase') zlabel('acceleration in y-direction')