Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
d730353f
Commit
d730353f
authored
7 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
check_matlab_path: fix English
parent
38996c74
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/check_matlab_path.m
+10
-10
10 additions, 10 deletions
matlab/check_matlab_path.m
with
10 additions
and
10 deletions
matlab/check_matlab_path.m
+
10
−
10
View file @
d730353f
...
...
@@ -52,7 +52,7 @@ else
% Dynare is on top of matlab's path! Nothing to do here...
return
else
str0
=
sprintf
(
'Dynare is not on top of
matlab
''
s
path!'
);
str0
=
sprintf
(
'Dynare is not on top of
the Matlab/Octave
path!'
);
% Check that this will not create a problem
MATLAB_PATH_
=
path2cell
(
MATLAB_PATH
);
DYNARE_ROUTINES
=
getallroutinenames
(
DYNARE_PATH
,
getalldirectories
(
DYNARE_PATH
));
...
...
@@ -66,19 +66,19 @@ else
warning
off
backtrace
skipline
()
if
length
(
COMMON_ROUTINES
)
==
1
warning
(
sprintf
(
'%s This can cause problems because the Dynare
vers
ion of %s will be overriden.'
,
str0
,
COMMON_ROUTINES
{
1
}));
warning
(
sprintf
(
'%s This can cause problems because the Dynare
implementat
ion of %s will be overriden.'
,
str0
,
COMMON_ROUTINES
{
1
}));
else
str1
=
repmat
(
'%s, '
,
1
,
length
(
COMMON_ROUTINES
)
-
1
);
str2
=
'and %s '
;
str3
=
sprintf
([
'%s This can cause problems because the Dynare
vers
ions of '
str1
,
str2
,
'will be overriden.'
],
str0
,
COMMON_ROUTINES
{:});
str3
=
sprintf
([
'%s This can cause problems because the Dynare
implementat
ions of '
str1
,
str2
,
'will be overriden.'
],
str0
,
COMMON_ROUTINES
{:});
warning
(
str3
);
end
if
change_path_flag
skipline
()
msg
=
sprintf
(
'I put %s on top of your
m
atlab
''
s path. Note that this is a'
,
DYNARE_PATH
);
msg
=
sprintf
(
' %
s a temporary change (i
e
will not affect future
m
atlab
''
s
session).
'
,
msg
);
msg
=
sprintf
(
' %s
If the ordering was intentional, i
e
if you really want to override the routines distributed with Dynare,'
,
msg
);
msg
=
sprintf
(
' %s
you can change this behavio
u
r using
option
nopathchange (see the reference manual).'
,
msg
);
msg
=
sprintf
(
[
'I put %s on top of your
M
atlab
/Ocatve path.'
...
'\nNote that this i
s a temporary change (i
.e. it
will not affect future
M
atlab
/Octave
session
s
).
\n'
...
'\n
If the ordering was intentional, i
.e.
if you really want to override the routines distributed with Dynare,'
...
'
you can change this behavior using
the
''
nopathchange
''
option
(see the reference manual).'
]
,
DYNARE_PATH
);
warning
(
msg
);
skipline
()
rmpath
(
DYNARE_PATH
)
...
...
@@ -96,9 +96,9 @@ else
MATLAB_PATH
=
path2cell
(
MATLAB_PATH
);
for
i
=
1
:
length
(
mexpath
)
if
exist
([
mexpath
{
i
}
filesep
'mjdgges.'
mexext
],
'file'
)
&&
ismember
([
DYNARE_PATH
filesep
'qz'
],
MATLAB_PATH
)
msg
=
sprintf
([
'You
put all the
d
ynare
/
matlab
sub
folder
s
in
matlab
''
s
path! Only '
...
'the dynare
/
matlab folder (without subfolders)\nshould be in the '
...
'path
,
Dynare
will
automatically add any required subfolders
in
the '
...
msg
=
sprintf
([
'You put all the
subfolders of the D
ynare
matlab folder in
the Matlab/Octave
path! Only '
...
'the dynare
'
filesep
'
matlab folder (without subfolders)\nshould be in the '
...
'path
.
Dynare automatically add
s
any required subfolders
to
the '
...
'path.'
]);
error
(
msg
)
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment