| 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-2024, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France |
|---|
| 14 | % http://www.legi.grenoble-inp.fr |
|---|
| 15 | % Joel.Sommeria - Joel.Sommeria (A) univ-grenoble-alpes.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 | |
|---|
| 30 | function hh=disp_uvmat(title,display_str,checkrun) |
|---|
| 31 | hh=[]; |
|---|
| 32 | if checkrun |
|---|
| 33 | hh=msgbox_uvmat(title,display_str,''); |
|---|
| 34 | else |
|---|
| 35 | disp([title ': ' display_str]) |
|---|
| 36 | end |
|---|
| 37 | |
|---|