comparison m-toolbox/classes/+utils/@helper/isinfocall.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 % ISINFOCALL defines the condition for an 'info' call
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: ISINFOCALL defines the condition for an 'info' call
5 %
6 % CALL: out = isinfocall(varargin{:})
7 %
8 % VERSION: $Id: isinfocall.m,v 1.3 2011/02/22 15:42:46 hewitson Exp $
9 %
10 % HISTORY: 11-07-2008 Diepholz
11 % Creation
12 %
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15 function out = isinfocall(varargin)
16
17 % Check if this is a call for parameters
18 if nargin == 3
19 if ischar(varargin{2}) && ischar(varargin{3}) && strcmp(varargin{2}, 'INFO')
20 out = true;
21 return
22 end
23 end
24 out = false;
25 end
26