source: trunk/src/disp_uvmat.m @ 810

Last change on this file since 810 was 809, checked in by g7moreau, 10 years ago
  • Add license
File size: 1.5 KB
Line 
1%'disp_uvmat': display a message using  msgbox_uvmat or on the log file in batch mode
2%--------------------------------------------------------------------------
3%
4%  displ_uvmat(title,display_str,checkrun)
5%
6%  INPUT:
7%  title: ='ERROR' or 'WARNING', as requested as input of  msgbox_uvmat.m
8%  display_str: message string to display
9%  checkrun: =1: run mode, use of msgbox_uvmat window
10%  checkrun: =0: batch mode: text display on log file
11
12%=======================================================================
13% Copyright 2008-2014, LEGI UMR 5519 / CNRS UJF G-INP, Grenoble, France
14%   http://www.legi.grenoble-inp.fr
15%   Joel.Sommeria - Joel.Sommeria (A) legi.cnrs.fr
16%
17%     This file is part of the toolbox UVMAT.
18%
19%     UVMAT is free software; you can redistribute it and/or modify
20%     it under the terms of the GNU General Public License as published
21%     by the Free Software Foundation; either version 2 of the license,
22%     or (at your option) any later version.
23%
24%     UVMAT is distributed in the hope that it will be useful,
25%     but WITHOUT ANY WARRANTY; without even the implied warranty of
26%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27%     GNU General Public License (see LICENSE.txt) for more details.
28%=======================================================================
29
30function hh=disp_uvmat(title,display_str,checkrun)
31hh=[];
32if checkrun
33    hh=msgbox_uvmat(title,display_str,'');
34else
35    disp([title ': ' display_str])
36end
37   
Note: See TracBrowser for help on using the repository browser.