% a new window will open % in the new window select a radius and location of the radius center to select the PS to export load parms.mat; % the 'v-do' parameter is an example you can change it to your needs % but be sure that you use the same paramters as above in the ps_plot()! ps_plot('v-do', -1); load ps_plot_v-do.mat; lon2_str = cellstr(num2str(lon2)); lat2_str = cellstr(num2str(lat2)); lonlat2_str = strcat(lon2_str, lat2_str); lonlat_str = strcat(cellstr(num2str(lonlat(:,1))), cellstr(num2str(lonlat(:,2)))); ind = ismember(lonlat_str, lonlat2_str); disp = ph_disp(ind); disp_ts = ph_mm(ind,:); export_res = [lonlat(ind,1) lonlat(ind,2) disp disp_ts]; metarow = [ref_centre_lonlat NaN transpose(day)-1]; k = 0; export_res = [export_res(1:k,:); metarow; export_res(k+1:end,:)]; export_res = table(export_res); % you can specify the location and name of the .csv export by renaming the second parameter writetable(export_res,'stamps_tsexport.csv')