Skip to content
Permalink
3b06226663
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
40 lines (28 sloc) 987 Bytes
display()
function display
%to make sure the file actually exists, if not the user will know
if(~isdeployed)
cd(fileparts(which(mfilename)));
end
DataPath = '.\';
AvailableFiles = dir((fullfile(DataPath, '*.fig'))); % list available data files
for idx = 1: size(AvailableFiles,1) %loop all the images
%opens the figures (all)
OpenFileName = AvailableFiles(idx).name;
fig = openfig(OpenFileName);
%saving data in csv extension
Ozone = fig.Children.Children.ZData;
Name = strsplit(OpenFileName,'.');
writematrix(Ozone, strcat(Name{1},'.csv'))
%captions for the visualization
show_colorbar; % creates a color bar for easier readings of levels
%make the window centered or maximized
%movegui(fig,[300 600]);
end
end
function exit_program
exit
end
function show_colorbar
colorbar
end