source: trunk/toolbox/tp_mlp_aerosols_startup.m @ 35

Last change on this file since 35 was 34, checked in by pinsard, 15 years ago

run_octave is a global variable

  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1% TP_MLP_AEROSOLS_STARTUP initialisation of matlab/octave environment for TP_MLP_AEROSOLS project
2
3%+
4%
5% module
6% ======
7%
8% initialisation of matlab/octave environment for TP_MLP_AEROSOLS project
9%
10% DESCRIPTION
11% ===========
12%
13% Detect if either octave or matlab running.
14%
15% Set up help Character Encoding.
16% cf http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/index.html?/access/helpdesk/help/toolbox/simulink/slref/slcharacterencoding.html&http://www.google.fr/search?q=slCharacterEncoding&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
17%
18% This file can be either run classicaly when currect directory
19% is ${TP_MLP_AEROSOLS} :
20%
21% ..
22%
23%  >> tp_mlp_aerosols_startup
24%
25%
26% If linked or copy to ./startup.m, it will be automaticaly
27% run by matlab at start.
28%
29% If linked or copy to ${HOME}/.octaverc, it will be automaticaly
30% run by octave at start.
31%
32% SEE ALSO
33% ========
34%
35% tp_mlp_aerosols_profile.sh_
36%
37% .. _tp_mlp_aerosols_profile.sh : tp_mlp_aerosols_profile.sh.html
38%
39% EVOLUTIONS
40% ==========
41%
42% $Id$
43%
44% - fplod 2009-09-09T14:49:20Z aedon.locean-ipsl.upmc.fr (Darwin)
45%
46%   * ``run_octave`` is now a global variable
47%
48% - fplod 2009-09-08T10:51:15Z aedon.locean-ipsl.upmc.fr (Darwin)
49%
50%   * application name and version. These strings can be use to
51%     name saved files and make comparison easier.
52%
53% - fplod 2009-08-17T15:41:11Z ajax.locean-ipsl.upmc.fr (Linux)
54%
55%   * find syntax to define help Character Encoding in octave and matlab
56%
57% - fplod 2009-08-12T15:26:01Z aedon.locean-ipsl.upmc.fr (Darwin)
58%
59%   * creation inspired of equivalent feature in IRCAAM project
60%
61% TODO
62% ====
63%
64% Define :
65%  - path for matlab/octave commands used in TP_MLP_AEROSOLS project
66%  - IO directories in global variables
67%
68% not yet done because of specific meaning of private and toolbox in matlab
69%
70% check if set_param(0,'CharacterEncoding','ISO-8859-1') is a better solution
71% than slCharacterEncoding('ISO-8859-1')
72%
73%-
74%
75clear all
76%
77global run_octave
78%
79% detect if either octave or matlab running
80if ~ exist('OCTAVE_VERSION','builtin')
81 run_octave=0;
82 application='matlab';
83 application_version=version('-release');
84else
85 run_octave=1;
86 application='octave';
87 application_version=version();
88end
89%
90if (run_octave == 0)
91 % to display help written in ISO-LATIN
92 slCharacterEncoding('ISO-8859-1');
93end
94%
95more on
Note: See TracBrowser for help on using the repository browser.