view m-toolbox/classes/@workspaceBrowser/cb_plot.m @ 19:69e3d49b4b0c database-connection-manager

Update ltpda_uo.fromRepository
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

% CB_PLOT plot the selected objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% CB_PLOT plot the selected objects.
%
% $Id: cb_plot.m,v 1.2 2009/07/29 07:02:45 hewitson Exp $
%
function cb_plot(varargin)
  
  
  wb = getappdata(0, 'WorkspaceBrowser');
  
  objs = workspaceBrowser.getSelectedObjects(wb);
  
  aos = [];
  for kk=1:numel(objs)
    obj = objs{kk};
    if isa(obj, 'ao')
      aos = [aos obj];
    end
  end
  
  if ~isempty(aos)
    iplot(aos);
  else
    disp('nothing to plot :( ');
  end
  
end