diff --git a/src/geckomat/utilities/saveEcModel.m b/src/geckomat/utilities/saveEcModel.m index 69f4bf95..9c0e5bad 100644 --- a/src/geckomat/utilities/saveEcModel.m +++ b/src/geckomat/utilities/saveEcModel.m @@ -40,12 +40,12 @@ function saveEcModel(ecModel,filename,modelAdapter) switch filename(end-3:end) case {'.xml','sbml'} - exportModel(ecModel,[filename '.xml']); + exportModel(ecModel, filename); %Convert notation "e-005" to "e-05 " in stoich. coeffs. to avoid %inconsistencies between Windows and MAC: - copyfile([filename '.xml'],'backup.xml') + copyfile(filename,'backup.xml') fin = fopen('backup.xml', 'r'); - fout = fopen([filename '.xml'], 'w'); + fout = fopen(filename, 'w'); still_reading = true; while still_reading inline = fgets(fin);