This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Compare two MPC objects


yesno = compare(MPC1,MPC2)


The compare function compares the contents of two MPC objects MPC1, MPC2. If the design specifications (models, weights, horizons, etc.) are identical, then yesno is equal to 1.


compare may return yesno = 1 even if the two objects are not identical. For instance, MPC1 may have been initialized while MPC2 may have not, so that they may have different sizes in memory. In any case, if yesno = 1, the behavior of the two controllers will be identical.

See Also

Introduced before R2006a

Was this topic helpful?