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

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

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

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