function setNominalModelIndex(this,Index)
%setNominalModelIndex  Sets the index for the nominal model.

%   Copyright 2009-2011 The MathWorks, Inc.

Plant = this.Plant;
Loops = this.L;

if (mod(Index,1) == 0) && (Index <= length(Plant.getP))&&(Index > 0)
    Plant.setNominalModelIndex(Index)
    for ct = 1:length(Loops)
        Loops(ct).Nominal = Index;
    end
    this.dataevent('all')
else
    error(message('Control:compDesignTask:errNominalIndexOutOfRange',length(Plant.getP)))
end