Home > freetb4matlab > control > sysprune.m

sysprune

PURPOSE ^

% Extract specified inputs/outputs from a system

SYNOPSIS ^

function sys = sysprune (sys, output_idx, input_idx, state_idx)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{retsys} =} sysprune (@var{asys}, @var{out_idx}, @var{in_idx})
% Extract specified inputs/outputs from a system
%
% @strong{Inputs}
% @table @var
% @item asys
% system data structure
% @item out_idx
% @itemx in_idx
% Indices or signal names of the outputs and inputs to be kept in the returned
% system; remaining connections are ``pruned'' off.
% May select as [] (empty matrix) to specify all outputs/inputs.
%
% @example
% retsys = sysprune (Asys, [1:3,4], 'u_1');
% retsys = sysprune (Asys, @{'tx', 'ty', 'tz'@}, 4);
% @end example
%
% @end table
%
% @strong{Output}
% @table @var
% @item retsys
% Resulting system.
% @end table
% @example
% @group
%            ____________________
% u1 ------->|                  |----> y1
%  (in_idx)  |       Asys       | (out_idx)
% u2 ------->|                  |----| y2
%   (deleted)-------------------- (deleted)
% @end group
% @end example
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003