comparison m-toolbox/classes/+utils/@helper/warn.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 % WARN prints the warning message to the MATLAB terminal and to the
2 % workbench console.
3 %
4 % CALL: utils.helper.warn(message)
5 %
6 % INPUTS:
7 % message - the warning message string to print
8 %
9 %
10 % M Hewitson 04-02-10
11 %
12 % $Id: msg.m,v 1.10 2010/01/08 14:37:41 ingo Exp $
13 %
14
15 function warn(msg)
16
17 wb = getappdata(0, 'LTPDAworkbench');
18 if isa(wb, 'LTPDAworkbench')
19 wb.addWarningMessage(msg);
20 end
21 warning(msg);
22
23 end