MATLAB: Saving a model after UnitConversion in SimBiology

SimBiologysimbiology unitconversion sbml

Hi,
I was wondering if it was possible to save (and export to SBML) a model after UnitConversion? I cannot directly export to SBML a model that requires UnitConversion prior to simulation (conversion works fine, but simulations obviously do not). Can the converted model be manipulated though?
Thanks.

Best Answer

Based on your reply, I now understand that you'd like to update a model in SimBiology, so that you can simulate it correctly with UnitConversion disabled. This will allow you to export the model to SBML so that you can also simulate it correctly in a tool that does not support unit conversion.
You should be able to automate much of the conversion process. However, the exact details will depend on your model and how you want to make the units consistent. At a high level, you will need to convert all species, compartments, and parameters to consistent units and update their values accordingly. The function sbioconvertunits can be quite helpful in this process. For example, you can update all species in model m1 so that units and values are in mole/liter with the code sbioconvertunits(m1.Species, 'mole/liter').
Good luck,
-Arthur