comparison m-toolbox/classes/@ao/clearErrors.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 function clearErrors(varargin)
2
3 bs = varargin{1};
4 if nargin > 1
5 pl = varargin{2};
6 app_axis = pl.find('axis');
7 else
8 app_axis = 'xy';
9 end
10
11 % Set units
12 for jj = 1:numel(bs)
13 if any('X'==upper(app_axis)) && isa(bs(jj).data, 'data2D')
14 bs(jj).data.setDx([]);
15 end
16 if any('Y'==upper(app_axis))
17 bs(jj).data.setDy([]);
18 end
19 end
20
21
22 end