MATLAB: How to perform the programmatic equivalent action of dragging a validation data set to the Validation Data box in the System Identification GUI 7.3 (R2009a)

dataidentificationprogrammaticallysystemSystem Identification Toolboxvalidation

I would like to know what commands are being run when I drag and drop a validation dataset to the Validation Data box in the System Identification GUI.

Best Answer

The equivalent of dragging a validation dataset to the Validation Data box in the System Identification GUI is the command COMPARE as follows:
compare(data,m);
where data is the validation dataset, and m is your idmodel or idnlmodel.