function [ ] = saveConfigFile(fileName,handles)
%UNTITLED2 Summary of this function goes here
%   Detailed explanation goes here
handlesSave.xSizeD = handles.xSizeD;
handlesSave.ySizeD = handles.ySizeD;
handlesSave.xDispD = handles.xDispD;
handlesSave.yDispD = handles.yDispD;
handlesSave.numFiltersD = handles.numFiltersD;
handlesSave.NUC = handles.NUC;
handlesSave.MUC = handles.MUC;
handlesSave.shapeFcnD = handles.shapeFcnD;
handlesSave.shapeFcnPos = handles.shapeFcnPos;
handlesSave.shapeFcnList = handles.shapeFcnList;
handlesSave.xiSizeD = handles.xiSizeD;
handlesSave.etaSizeD = handles.etaSizeD;
handlesSave.filtVal = handles.filtVal;
handlesSave.showImagCellGeo = handles.showImagCellGeo;
handlesSave.showResults = handles.showResults;
handlesSave.filtColor = handles.filtColor;
handlesSave.colorFiltBoxPos = handles.colorFiltBoxPos;
handlesSave.eps = handles.eps;
handlesSave.radius = handles.radius;
handlesSave.noiseMult = handles.noiseMult;
handlesSave.numXpixels = handles.numXpixels;
handlesSave.numYpixels = handles.numYpixels;
handlesSave.numXUnitCells = handles.numXUnitCells;
handlesSave.numYUnitCells = handles.numYUnitCells;
handlesSave.shotNoise = handles.shotNoise;
handlesSave.numPElectrons = handles.numPElectrons;
handlesSave.useSynthTestImg = handles.useSynthTestImg;
handlesSave.applyPixShapeFcnD = handles.applyPixShapeFcnD;
handlesSave.fsMultD = handles.fsMultD;

save(fileName,'handlesSave');

end

