Comparison

compareModels(modelA, modelB)[source]

Compares modelA with modelB, looking for differences between the structures. Assumes any pair of NaN are identical.

USAGE:

[isSameModel, diffTable, why] = compareModels (modelA, modelB)

INPUTS:
  • modelA – structure (e.g. a COBRA model) to compare

  • modelB – structure (e.g. a COBRA model) to compare against modelA

OUTPUTS:
  • isSameModel – true if identical models, false otherwise

  • diffTable – table listing differences between fields in the input structures, including dimensions when they differ

  • why – structure listing differences between models

Note

This function depends on structeq.m and celleq.m