%plot zebra fish

% data_dir="C:\Users\srn32\Dropbox\Growth Paper\Zebrafish-stripe-model-master\testWT1";
clear;

%type name of the folder created by reader.m (ommiting the number at the
%end)

folder_prefix="WT_testing_codeWT";

%number of repeats. Same numebr of repeats as you did in reader.m
num_reps=5;

for i=1:num_reps
    
    folder_name=folder_prefix+num2str(i);
    cd(folder_name)

    data=load("WT.mat");

    dm_m=data.domain_matrix;
    dm_ir=data.domain_matrix_ir;
    dm_xa=data.domain_matrix_X;

    cd ..
    plot_zebrafish(dm_m,dm_ir,dm_xa,0,1,0);

    figname=folder_name;
    

    exportgraphics(gcf,figname+".png");
%     saveas(gcf,figname,'epsc');

end