I have actually a code to procedure my acoustic data (altimeter soundings to monitor seagrass heights in shallow water). The data comes in separate records for each survey section and also so I have a full of 6 various sized .txt docs. I have loaded everything in however when I try to average in a loop every 7 pings i am getting and also error.
You are watching: Index in position 2 exceeds array bounds
Index in place 2 exceeds variety bounds (must no exceed 27630) Error in VA500readv2 (line 55) tmp_depth = ping_depth(:,i-x:i+x); % find all depth worths for x pings before and also after ping i.
This is what the section of password looks like, any assist is lot appreciated. I will additionally copy the variable size in. Give thanks to you for help in advance.Also ns have currently ran the full script on two previous data files and also it worked absolutely fine so i am unsure what’s gone wrong once trying to operation the the third. Many thanks again.
I am trying to index 2 columns(time and pings) however I am no sure exactly how to execute this the best method :// listed below is fifty percent of mine code and the loops that I have actually been using, the little bit at the start (for loop and also k_ind) creates a procession the size of 28022 as soon as I require 27630 and I to be unsure how to fix this.
% index the VA500 pingsk = regexp(C2,"sig");k_ind = <>;for ns = 1:length(k) if cell2mat(k(i)) == 1 k_ind =
k_ind 28022×1 double,ping_corr 48×27630 double,ping_depth 48×27630 double,ping_id 28022×1 double,k 390908×1 cell,ping_num 1×27630 double,ping_time 28022×1 double,time 390908×1 dual ,tmp_bins 336×1 double,tmp_corr 336×1 double,tmp_depth 336×1 double,data 390908×37 char,bin_depth 1×161 double,bin_corr 161×28022 double.
See more: Skinner &Amp; Smith Funeral Home Dunn, Nc, Operant Conditioning (B
I have no idea exactly how to deal with this and preallocate for variety the exact same size as the pings due to the fact that for some reason its do a different size. Give thanks to you for your assist in advance, its lot appreciated.