From e715abfcc2359b48b3ffa425eb8e1640fed54fe8 Mon Sep 17 00:00:00 2001 From: Eduard Kerkhoven Date: Thu, 4 Nov 2021 15:05:14 +0100 Subject: [PATCH] fix: exportModel model.comps check --- io/exportModel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/exportModel.m b/io/exportModel.m index 0f7559d1..b51c0b12 100755 --- a/io/exportModel.m +++ b/io/exportModel.m @@ -222,7 +222,7 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings) end if isfield(modelSBML.compartment,'metaid') - if regexp(model.comps(i),'^[^a-zA-Z_]') + if regexp(model.comps{i},'^[^a-zA-Z_]') EM='The compartment IDs are in numeric format. For the compliance with SBML specifications, compartment IDs will be preceded with "c_" string'; dispEM(EM,false); model.comps(i)=strcat('c_',model.comps(i));