function status = openvar(name,array)
%openvar Open a workspace variable for graphical editing.
%   openvar(NAME) edits the array in the base workspace whose name is given
%   in NAME.  NAME must contain a string.

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.23 $  $Date: 2000/06/01 01:25:37 $

if nargin == 0
  error('Please provide the name of an array to edit.');
elseif ~isstr(name)
  error('The array name must be a string.');
end

err = javachk('MWT', 'Array Editor');
if ~isempty(err)
  error(err);
end;

com.mathworks.ide.arrayeditor.ArrayEditor.invoke(name);
