function StepRespObj = deletesys(StepRespObj,indDelete);
%DELETESYS Remove systems from the Step Response Objects

%   Karen D. Gondoly: 4-7-98
%   Copyright 1986-2000 The MathWorks, Inc. 
% $Revision: 1.3 $

%---Remove all the Systems' data
StepRespObj.PeakResponseValue(indDelete)=[];
StepRespObj.RiseTimeValue(indDelete)=[];
StepRespObj.SteadyStateValue(indDelete)=[];
StepRespObj.SettlingTimeValue(indDelete)=[];

%---Delete Parent Properties
StepRespObj.response = deletesys(StepRespObj.response,indDelete);
UImenu = get(StepRespObj.response,'UIContextMenu');
set(UImenu.Main,'UserData',StepRespObj);