Skip to content
Snippets Groups Projects
Commit ac1cb7a2 authored by Charlotte Bond's avatar Charlotte Bond
Browse files

tidying

parent e21c7674
Branches
Tags
No related merge requests found
......@@ -40,13 +40,7 @@ function [data] = FT_select_1D_data(data_2D,option,line_idx)
data_1D(1:rows) = data_2D(:,line_idx);
end
% Remove any nan sections (i.e. when taking 1D data from maps)
idx = find(isnan(data_1D)==0);
% Remove nan data only at the edges
i_min = min(idx);
i_max = max(idx);
data = data_1D(i_min:i_max);
data = data_1D;
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment