Mercurial > hg > ltpda
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/+utils/@helper/warn.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,23 @@ +% WARN prints the warning message to the MATLAB terminal and to the +% workbench console. +% +% CALL: utils.helper.warn(message) +% +% INPUTS: +% message - the warning message string to print +% +% +% M Hewitson 04-02-10 +% +% $Id: msg.m,v 1.10 2010/01/08 14:37:41 ingo Exp $ +% + +function warn(msg) + + wb = getappdata(0, 'LTPDAworkbench'); + if isa(wb, 'LTPDAworkbench') + wb.addWarningMessage(msg); + end + warning(msg); + +end