% Saves pix in .png/.pdf/.fig format.


curr_dir = cd;
curr_dir = strcat(curr_dir, '\Pix');
fprintf('\n Saving Pix in %s \n',curr_dir)

%rmdir('Pix','s');  %Clear the old directory, if needed.
mkdir('Pix/png');  %Create the .png directory.
mkdir('Pix/fig');  %Create the .fig directory.
mkdir('Pix/pdf');  %Create the .pdf directory.

figure(01);
saveas(01,'Pix/png/F01_PDF_vs_x','png');
saveas(01,'Pix/fig/F01_PDF_vs_x','fig');
saveas(01,'Pix/pdf/F01_PDF_vs_x','pdf');

figure(02);
saveas(02,'Pix/png/F02_Log_PDF_vs_x','png');
saveas(02,'Pix/fig/F02_Log_PDF_vs_x','fig');
saveas(02,'Pix/pdf/F02_Log_PDF_vs_x','pdf');

figure(03);
saveas(03,'Pix/png/F03_CDF_vs_X','png');
saveas(03,'Pix/fig/F03_CDF_vs_X','fig');
saveas(03,'Pix/pdf/F03_CDF_vs_X','pdf');

figure(04);
saveas(04,'Pix/png/F04_Log_CDF_vs_X','png');
saveas(04,'Pix/fig/F04_Log_CDF_vs_X','fig');
saveas(04,'Pix/pdf/F04_Log_CDF_vs_X','pdf');



figure(11);
saveas(11,'Pix/png/F11_PDF_vs_x_Alpha_0p75','png');
saveas(11,'Pix/fig/F11_PDF_vs_x_Alpha_0p75','fig');
saveas(11,'Pix/pdf/F11_PDF_vs_x_Alpha_0p75','pdf');

figure(13);
saveas(13,'Pix/png/F13_CDF_vs_X_Alpha_0p75','png');
saveas(13,'Pix/fig/F13_CDF_vs_X_Alpha_0p75','fig');
saveas(13,'Pix/pdf/F13_CDF_vs_X_Alpha_0p75','pdf');



clear all;
close all;

beep;

fprintf('\n Finished Saving Pix - All Done !!! \n')