Comparison

compareModels(modelA, modelB)[source]

compares modelA with modelB, looking for differences between the structures

INPUT modelA: structure modelB: structure printLevel:

OUTPUT isSameModel: true if identical models, false otherwise

diffTable: table listing differences between fields in the input structures, e.g.

field modelA modelB

___________ ____________ ____ “DrGtPrior” “1” “0” “DrGtPrior” “quadratic” “none”

differences: structure listing differences between models
*.reason: gives a text stack of why the difference occurred

as well as a field

*.where: contains the indices and subfields of the structure

where the comparison failed.

Note: This function depends on structeq.m and celleq.m