clear all; close all; clc; dx = 1000; path(path,'/home/disk/brume/matthills/matlab/Wave_action/Averaging_and_combining/Wave_13/Raw_data') A = importdata('time_shift_minus_u_b_wave_13_100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(1,1) = C(1,3); wave_13_averaged_time_shift_minus_13(1,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(2,1) = C(1,3); wave_13_averaged_time_shift_minus_13(2,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(3,1) = C(1,3); wave_13_averaged_time_shift_minus_13(3,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(4,1) = C(1,3); wave_13_averaged_time_shift_minus_13(4,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(5,1) = C(1,3); wave_13_averaged_time_shift_minus_13(5,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_1100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_1100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(6,1) = C(1,3); wave_13_averaged_time_shift_minus_13(6,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_1300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_1300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(7,1) = C(1,3); wave_13_averaged_time_shift_minus_13(7,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_1500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_1500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(8,1) = C(1,3); wave_13_averaged_time_shift_minus_13(8,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_1700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_1700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(9,1) = C(1,3); wave_13_averaged_time_shift_minus_13(9,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_1900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_1900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(10,1) = C(1,3); wave_13_averaged_time_shift_minus_13(10,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_2100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_2100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(11,1) = C(1,3); wave_13_averaged_time_shift_minus_13(11,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_2300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_2300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(12,1) = C(1,3); wave_13_averaged_time_shift_minus_13(12,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_2500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_2500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(13,1) = C(1,3); wave_13_averaged_time_shift_minus_13(13,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_2700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_2700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(14,1) = C(1,3); wave_13_averaged_time_shift_minus_13(14,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_2900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_2900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(15,1) = C(1,3); wave_13_averaged_time_shift_minus_13(15,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_3100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_3100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(16,1) = C(1,3); wave_13_averaged_time_shift_minus_13(16,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_3300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_3300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(17,1) = C(1,3); wave_13_averaged_time_shift_minus_13(17,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_3500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_3500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(18,1) = C(1,3); wave_13_averaged_time_shift_minus_13(18,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_3700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_3700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(19,1) = C(1,3); wave_13_averaged_time_shift_minus_13(19,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_3900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_3900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(20,1) = C(1,3); wave_13_averaged_time_shift_minus_13(20,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_4100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_4100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(21,1) = C(1,3); wave_13_averaged_time_shift_minus_13(21,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_4300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_4300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(22,1) = C(1,3); wave_13_averaged_time_shift_minus_13(22,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_4500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_4500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(23,1) = C(1,3); wave_13_averaged_time_shift_minus_13(23,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_4700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_4700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(24,1) = C(1,3); wave_13_averaged_time_shift_minus_13(24,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_4900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_4900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(25,1) = C(1,3); wave_13_averaged_time_shift_minus_13(25,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_5100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_5100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(26,1) = C(1,3); wave_13_averaged_time_shift_minus_13(26,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_5300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_5300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(27,1) = C(1,3); wave_13_averaged_time_shift_minus_13(27,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_5500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_5500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(28,1) = C(1,3); wave_13_averaged_time_shift_minus_13(28,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_5700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_5700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(29,1) = C(1,3); wave_13_averaged_time_shift_minus_13(29,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_5900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_5900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(30,1) = C(1,3); wave_13_averaged_time_shift_minus_13(30,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_6100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_6100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(31,1) = C(1,3); wave_13_averaged_time_shift_minus_13(31,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_6300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_6300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(32,1) = C(1,3); wave_13_averaged_time_shift_minus_13(32,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_6500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_6500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(33,1) = C(1,3); wave_13_averaged_time_shift_minus_13(33,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_6700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_6700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(34,1) = C(1,3); wave_13_averaged_time_shift_minus_13(34,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_6900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_6900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(35,1) = C(1,3); wave_13_averaged_time_shift_minus_13(35,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_7100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_7100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(36,1) = C(1,3); wave_13_averaged_time_shift_minus_13(36,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_7300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_7300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(37,1) = C(1,3); wave_13_averaged_time_shift_minus_13(37,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_7500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_7500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(38,1) = C(1,3); wave_13_averaged_time_shift_minus_13(38,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_7700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_7700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(39,1) = C(1,3); wave_13_averaged_time_shift_minus_13(39,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_7900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_7900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(40,1) = C(1,3); wave_13_averaged_time_shift_minus_13(40,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_8100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_8100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(41,1) = C(1,3); wave_13_averaged_time_shift_minus_13(41,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_8300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_8300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(42,1) = C(1,3); wave_13_averaged_time_shift_minus_13(42,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_8500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_8500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(43,1) = C(1,3); wave_13_averaged_time_shift_minus_13(43,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_8700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_8700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(44,1) = C(1,3); wave_13_averaged_time_shift_minus_13(44,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_8900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_8900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(45,1) = C(1,3); wave_13_averaged_time_shift_minus_13(45,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_9100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_9100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(46,1) = C(1,3); wave_13_averaged_time_shift_minus_13(46,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_9300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_9300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(47,1) = C(1,3); wave_13_averaged_time_shift_minus_13(47,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_9500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_9500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(48,1) = C(1,3); wave_13_averaged_time_shift_minus_13(48,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_9700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_9700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(49,1) = C(1,3); wave_13_averaged_time_shift_minus_13(49,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_u_b_wave_13_9900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_u_b_wave_13_9900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(50,1) = C(1,3); wave_13_averaged_time_shift_minus_13(50,2) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next variable %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(1,1) = C(1,3); wave_13_averaged_time_shift_minus_13(1,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(2,1) = C(1,3); wave_13_averaged_time_shift_minus_13(2,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(3,1) = C(1,3); wave_13_averaged_time_shift_minus_13(3,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(4,1) = C(1,3); wave_13_averaged_time_shift_minus_13(4,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(5,1) = C(1,3); wave_13_averaged_time_shift_minus_13(5,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_1100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_1100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(6,1) = C(1,3); wave_13_averaged_time_shift_minus_13(6,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_1300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_1300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(7,1) = C(1,3); wave_13_averaged_time_shift_minus_13(7,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_1500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_1500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(8,1) = C(1,3); wave_13_averaged_time_shift_minus_13(8,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_1700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_1700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(9,1) = C(1,3); wave_13_averaged_time_shift_minus_13(9,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_1900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_1900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(10,1) = C(1,3); wave_13_averaged_time_shift_minus_13(10,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_2100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_2100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(11,1) = C(1,3); wave_13_averaged_time_shift_minus_13(11,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_2300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_2300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(12,1) = C(1,3); wave_13_averaged_time_shift_minus_13(12,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_2500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_2500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(13,1) = C(1,3); wave_13_averaged_time_shift_minus_13(13,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_2700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_2700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(14,1) = C(1,3); wave_13_averaged_time_shift_minus_13(14,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_2900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_2900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(15,1) = C(1,3); wave_13_averaged_time_shift_minus_13(15,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_3100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_3100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(16,1) = C(1,3); wave_13_averaged_time_shift_minus_13(16,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_3300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_3300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(17,1) = C(1,3); wave_13_averaged_time_shift_minus_13(17,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_3500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_3500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(18,1) = C(1,3); wave_13_averaged_time_shift_minus_13(18,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_3700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_3700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(19,1) = C(1,3); wave_13_averaged_time_shift_minus_13(19,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_3900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_3900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(20,1) = C(1,3); wave_13_averaged_time_shift_minus_13(20,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_4100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_4100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(21,1) = C(1,3); wave_13_averaged_time_shift_minus_13(21,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_4300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_4300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(22,1) = C(1,3); wave_13_averaged_time_shift_minus_13(22,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_4500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_4500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(23,1) = C(1,3); wave_13_averaged_time_shift_minus_13(23,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_4700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_4700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(24,1) = C(1,3); wave_13_averaged_time_shift_minus_13(24,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_4900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_4900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(25,1) = C(1,3); wave_13_averaged_time_shift_minus_13(25,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_5100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_5100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(26,1) = C(1,3); wave_13_averaged_time_shift_minus_13(26,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_5300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_5300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(27,1) = C(1,3); wave_13_averaged_time_shift_minus_13(27,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_5500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_5500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(28,1) = C(1,3); wave_13_averaged_time_shift_minus_13(28,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_5700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_5700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(29,1) = C(1,3); wave_13_averaged_time_shift_minus_13(29,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_5900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_5900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(30,1) = C(1,3); wave_13_averaged_time_shift_minus_13(30,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_6100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_6100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(31,1) = C(1,3); wave_13_averaged_time_shift_minus_13(31,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_6300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_6300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(32,1) = C(1,3); wave_13_averaged_time_shift_minus_13(32,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_6500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_6500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(33,1) = C(1,3); wave_13_averaged_time_shift_minus_13(33,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_6700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_6700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(34,1) = C(1,3); wave_13_averaged_time_shift_minus_13(34,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_6900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_6900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(35,1) = C(1,3); wave_13_averaged_time_shift_minus_13(35,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_7100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_7100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(36,1) = C(1,3); wave_13_averaged_time_shift_minus_13(36,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_7300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_7300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(37,1) = C(1,3); wave_13_averaged_time_shift_minus_13(37,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_7500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_7500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(38,1) = C(1,3); wave_13_averaged_time_shift_minus_13(38,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_7700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_7700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(39,1) = C(1,3); wave_13_averaged_time_shift_minus_13(39,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_7900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_7900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(40,1) = C(1,3); wave_13_averaged_time_shift_minus_13(40,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_8100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_8100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(41,1) = C(1,3); wave_13_averaged_time_shift_minus_13(41,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_8300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_8300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(42,1) = C(1,3); wave_13_averaged_time_shift_minus_13(42,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_8500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_8500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(43,1) = C(1,3); wave_13_averaged_time_shift_minus_13(43,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_8700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_8700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(44,1) = C(1,3); wave_13_averaged_time_shift_minus_13(44,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_8900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_8900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(45,1) = C(1,3); wave_13_averaged_time_shift_minus_13(45,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_9100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_9100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(46,1) = C(1,3); wave_13_averaged_time_shift_minus_13(46,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_9300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_9300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(47,1) = C(1,3); wave_13_averaged_time_shift_minus_13(47,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_9500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_9500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(48,1) = C(1,3); wave_13_averaged_time_shift_minus_13(48,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_9700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_9700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(49,1) = C(1,3); wave_13_averaged_time_shift_minus_13(49,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_w_b_wave_13_9900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_w_b_wave_13_9900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(50,1) = C(1,3); wave_13_averaged_time_shift_minus_13(50,3) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next variable %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(1,1) = C(1,3); wave_13_averaged_time_shift_minus_13(1,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(2,1) = C(1,3); wave_13_averaged_time_shift_minus_13(2,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(3,1) = C(1,3); wave_13_averaged_time_shift_minus_13(3,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(4,1) = C(1,3); wave_13_averaged_time_shift_minus_13(4,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(5,1) = C(1,3); wave_13_averaged_time_shift_minus_13(5,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_1100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_1100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(6,1) = C(1,3); wave_13_averaged_time_shift_minus_13(6,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_1300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_1300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(7,1) = C(1,3); wave_13_averaged_time_shift_minus_13(7,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_1500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_1500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(8,1) = C(1,3); wave_13_averaged_time_shift_minus_13(8,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_1700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_1700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(9,1) = C(1,3); wave_13_averaged_time_shift_minus_13(9,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_1900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_1900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(10,1) = C(1,3); wave_13_averaged_time_shift_minus_13(10,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_2100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_2100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(11,1) = C(1,3); wave_13_averaged_time_shift_minus_13(11,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_2300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_2300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(12,1) = C(1,3); wave_13_averaged_time_shift_minus_13(12,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_2500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_2500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(13,1) = C(1,3); wave_13_averaged_time_shift_minus_13(13,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_2700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_2700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(14,1) = C(1,3); wave_13_averaged_time_shift_minus_13(14,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_2900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_2900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(15,1) = C(1,3); wave_13_averaged_time_shift_minus_13(15,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_3100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_3100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(16,1) = C(1,3); wave_13_averaged_time_shift_minus_13(16,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_3300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_3300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(17,1) = C(1,3); wave_13_averaged_time_shift_minus_13(17,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_3500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_3500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(18,1) = C(1,3); wave_13_averaged_time_shift_minus_13(18,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_3700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_3700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(19,1) = C(1,3); wave_13_averaged_time_shift_minus_13(19,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_3900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_3900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(20,1) = C(1,3); wave_13_averaged_time_shift_minus_13(20,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_4100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_4100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(21,1) = C(1,3); wave_13_averaged_time_shift_minus_13(21,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_4300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_4300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(22,1) = C(1,3); wave_13_averaged_time_shift_minus_13(22,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_4500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_4500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(23,1) = C(1,3); wave_13_averaged_time_shift_minus_13(23,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_4700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_4700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(24,1) = C(1,3); wave_13_averaged_time_shift_minus_13(24,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_4900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_4900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(25,1) = C(1,3); wave_13_averaged_time_shift_minus_13(25,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_5100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_5100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(26,1) = C(1,3); wave_13_averaged_time_shift_minus_13(26,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_5300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_5300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(27,1) = C(1,3); wave_13_averaged_time_shift_minus_13(27,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_5500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_5500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(28,1) = C(1,3); wave_13_averaged_time_shift_minus_13(28,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_5700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_5700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(29,1) = C(1,3); wave_13_averaged_time_shift_minus_13(29,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_5900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_5900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(30,1) = C(1,3); wave_13_averaged_time_shift_minus_13(30,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_6100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_6100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(31,1) = C(1,3); wave_13_averaged_time_shift_minus_13(31,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_6300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_6300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(32,1) = C(1,3); wave_13_averaged_time_shift_minus_13(32,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_6500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_6500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(33,1) = C(1,3); wave_13_averaged_time_shift_minus_13(33,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_6700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_6700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(34,1) = C(1,3); wave_13_averaged_time_shift_minus_13(34,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_6900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_6900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(35,1) = C(1,3); wave_13_averaged_time_shift_minus_13(35,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_7100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_7100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(36,1) = C(1,3); wave_13_averaged_time_shift_minus_13(36,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_7300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_7300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(37,1) = C(1,3); wave_13_averaged_time_shift_minus_13(37,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_7500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_7500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(38,1) = C(1,3); wave_13_averaged_time_shift_minus_13(38,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_7700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_7700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(39,1) = C(1,3); wave_13_averaged_time_shift_minus_13(39,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_7900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_7900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(40,1) = C(1,3); wave_13_averaged_time_shift_minus_13(40,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_8100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_8100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(41,1) = C(1,3); wave_13_averaged_time_shift_minus_13(41,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_8300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_8300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(42,1) = C(1,3); wave_13_averaged_time_shift_minus_13(42,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_8500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_8500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(43,1) = C(1,3); wave_13_averaged_time_shift_minus_13(43,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_8700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_8700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(44,1) = C(1,3); wave_13_averaged_time_shift_minus_13(44,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_8900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_8900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(45,1) = C(1,3); wave_13_averaged_time_shift_minus_13(45,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_9100m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_9100m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(46,1) = C(1,3); wave_13_averaged_time_shift_minus_13(46,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_9300m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_9300m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(47,1) = C(1,3); wave_13_averaged_time_shift_minus_13(47,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_9500m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_9500m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(48,1) = C(1,3); wave_13_averaged_time_shift_minus_13(48,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_9700m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_9700m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(49,1) = C(1,3); wave_13_averaged_time_shift_minus_13(49,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Next level %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A = importdata('time_shift_minus_b_wave_13_9900m_13.txt'); B = importdata('launched_at_13_exact_left_right_edges_actual_upstream_downstream_array.txt'); for k = 1:5 C_temp(:,k) = (A.data(:,k)); end n = size(C_temp); % Work out the current number of rows in the matrix to help in picking out the last row. C = C_temp(1:n(1)-1,:); % Build a new matrix without the spurious and duplicated final row. N = size(C); % Size of the fixed matrix. n = N(1); % Number of rows in the fixed matrix. m = n - 1; % C(:,6) = B(1,1); % Where the actual left edge is (column is full of the same number for each of these). C(:,7) = C(1,6) - C(1,1); % Left edge delta. C(:,8) = B(2,1); % Where the actual right edge is. C(:,9) = C(n,1) - C(1,8); % Right edge delta. save /home/disk/brume/matthills/matlab/Wave_action/Merged_data/Wave_13/time_shift_minus_b_wave_13_9900m_13.txt C -ASCII total = sum(C(2:m,5)) + C(2,5) - (C(2,5) - C(1,5))/dx*C(1,7) + C(m,5) + (C(n,5) - C(m,5))/dx*C(1,9); number = (n-2 + C(1,7)/1000 + C(1,9)/1000); average = total/number; wave_13_averaged_time_shift_minus_13(50,1) = C(1,3); wave_13_averaged_time_shift_minus_13(50,4) = total; clear A; clear B; clear C; clear m; clear n; clear N; clear total; clear number; clear average; clear C_temp; clear k; save /home/disk/brume/matthills/matlab/Wave_action/Averaging_and_combining/Wave_13/Averaged_data/averaged_time_shift_minus_wave_13_13.txt wave_13_averaged_time_shift_minus_13 -ASCII rmpath /home/disk/brume/matthills/matlab/Wave_action/Averaging_and_combining/Wave_13/Raw_data