Skip to content

Commit

Permalink
improve ROI_selector so that it doesn't simply save files to the root…
Browse files Browse the repository at this point in the history
… dir
  • Loading branch information
aryarm committed Apr 5, 2019
1 parent dc6315a commit f0ad369
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ROI_selector.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[filename, pathname]=uiputfile('*.txt','Save');
[file, path]=uiputfile('*.txt','Save ROI Labels', 'roi_labels.txt');
vname=@(x) inputname(1);
writetable(ROI,filename,'Delimiter','\t');
if isequal(file,0) || isequal(path,0)
disp('User clicked Cancel.')
else
disp(['User selected ',fullfile(path,file),...
' and then clicked Save.'])
writetable(ROI,fullfile(path,file),'Delimiter','\t');
end

0 comments on commit f0ad369

Please sign in to comment.