Skip to content
Permalink
Browse files
Provided data extraction code
  • Loading branch information
goldberr committed Aug 5, 2020
1 parent d1fe642 commit e103216ec811ad4e1a1fc5320c72e9e9c69e082e
Showing 1 changed file with 14 additions and 0 deletions.
@@ -0,0 +1,14 @@
if(~isdeployed)
cd(fileparts(which(mfilename)));
end
DataPath = '.\';
AvailableFiles = dir((fullfile(DataPath, '*.fig'))); % list available data files

for idx = 1: size(AvailableFiles,1)
OpenFileName = AvailableFiles(idx).name;
fig = openfig(OpenFileName);
Ozone = fig.Children.Children.ZData;

Name = strsplit(OpenFileName,'.');
writematrix(Ozone, strcat(Name{1},'.csv'))
end

0 comments on commit e103216

Please sign in to comment.