function Value = pvget(RespObj,Property)
%PVGET  Get values of Response Object properties.
%
%   VALUES = PVGET(SYS) returns all public values in a cell
%   array VALUES.
%
%   VALUE = PVGET(SYS,PROPERTY) returns the value of the
%   single property with name PROPERTY.
%
%   See also GET.

%   Author(s): P. Gahinet
%   Copyright 1986-2000 The MathWorks, Inc. 
%   $Revision: 1.8 $  $Date: 2000/06/14 20:07:30 $

if nargin==1
   % Return all property values   
   Value = struct2cell(RespObj);
else
   % Single property
   Value = builtin('subsref',RespObj,struct('type','.','subs',Property));
end
