function IcRespObj = deletesys(IcRespObj,indDelete);
%DELETESYS Remove systems from the Initial Condition Response Objects

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

%---Remove all the Systems' data
IcRespObj.PeakResponseValue(indDelete)=[];

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