compareModels(modelA, modelB, printLevel)

compares modelA with modelB, looking for differences between the structures

INPUT modelA: structure modelB: structure printLevel:

OUTPUT isSameModel: true if identical models, false otherwise 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