close all
clear all
clc

corner_nodes = dlmread('C:\\School_work\\ESM_4714\\corner_nodes_1row.txt');

counter = 1;
node_num_corner(1) = 1;

for n = 2:length(corner_nodes)
    
    if corner_nodes(n) == corner_nodes(n-1)
    
           B = corner_nodes(n) ;
        
   else

       counter = counter+1;
       node_num_corner(counter) = corner_nodes(n);
                
    end
end

dlmwrite('C:\\School_work\\ESM_4714\\corner_nodes_1row_no_repeat.txt',node_num_corner.','\t')